Package dev.linwood.itemmods.pack
Class PackManager
- java.lang.Object
-
- dev.linwood.itemmods.pack.PackManager
-
public class PackManager extends Object
- Author:
- CodeDoctorDE
-
-
Constructor Summary
Constructors Constructor Description PackManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activatePack(String name)
void
deactivatePack(String name)
void
deletePack(String name)
void
export(String variation)
@NotNull List<ItemModsPack>
getInactivePacks()
@Nullable ItemModsPack
getPack(String name)
Set<String>
getPackNames()
@NotNull Path
getPackPath()
@NotNull List<ItemModsPack>
getPacks()
boolean
hasNoPreset()
boolean
isActivated(String name)
void
registerPack(@NotNull ItemModsPack pack)
void
reload()
void
save()
void
save(String namespace)
void
unregisterPack(String name)
void
zip(String name)
-
-
-
Method Detail
-
hasNoPreset
public boolean hasNoPreset() throws IOException
- Throws:
IOException
-
reload
public void reload()
-
save
public void save()
-
save
public void save(String namespace)
-
getPacks
@NotNull public @NotNull List<ItemModsPack> getPacks()
-
getInactivePacks
@NotNull public @NotNull List<ItemModsPack> getInactivePacks()
-
registerPack
public void registerPack(@NotNull @NotNull ItemModsPack pack)
-
unregisterPack
public void unregisterPack(String name)
-
activatePack
public void activatePack(String name)
-
deactivatePack
public void deactivatePack(String name)
-
deletePack
public void deletePack(String name)
-
getPackPath
@NotNull public @NotNull Path getPackPath()
-
getPack
@Nullable public @Nullable ItemModsPack getPack(String name)
-
export
public void export(String variation) throws IOException
- Throws:
IOException
-
isActivated
public boolean isActivated(String name)
-
zip
public void zip(String name) throws IOException
- Throws:
IOException
-
-