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