Package dev.linwood.itemmods.pack
Class ItemModsPack
- java.lang.Object
-
- dev.linwood.itemmods.pack.ItemModsPack
-
- All Implemented Interfaces:
NamedPackObject
- Direct Known Subclasses:
BaseAddon
public class ItemModsPack extends Object implements NamedPackObject
-
-
Field Summary
Fields Modifier and Type Field Description static Pattern
NAME_PATTERN
-
Constructor Summary
Constructors Constructor Description ItemModsPack(@NotNull String name)
ItemModsPack(@NotNull String name, boolean editable)
ItemModsPack(@NotNull Path path)
-
Method Summary
-
-
-
Field Detail
-
NAME_PATTERN
public static final Pattern NAME_PATTERN
-
-
Constructor Detail
-
ItemModsPack
public ItemModsPack(@NotNull @NotNull String name, boolean editable) throws UnsupportedOperationException
- Throws:
UnsupportedOperationException
-
ItemModsPack
public ItemModsPack(@NotNull @NotNull String name)
-
ItemModsPack
public ItemModsPack(@NotNull @NotNull Path path) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceNamedPackObject
-
registerDependency
public void registerDependency(@NotNull @NotNull String name)
-
unregisterDependency
public void unregisterDependency(String name)
-
registerItem
public void registerItem(@NotNull @NotNull ItemAsset itemAsset)
-
unregisterItem
public void unregisterItem(String name)
-
getBlocks
@NotNull public @NotNull List<BlockAsset> getBlocks()
-
registerBlock
public void registerBlock(@NotNull @NotNull BlockAsset blockAsset)
-
unregisterBlock
public void unregisterBlock(String name)
-
getTextures
@NotNull public @NotNull List<TextureAsset> getTextures()
-
registerTexture
public void registerTexture(@NotNull @NotNull TextureAsset textureAsset)
-
unregisterTexture
public void unregisterTexture(String name)
-
getModels
@NotNull public @NotNull List<ModelAsset> getModels()
-
registerModel
public void registerModel(@NotNull @NotNull ModelAsset modelAsset)
-
unregisterModel
public void unregisterModel(String name)
-
getTemplates
@NotNull public @NotNull List<CustomTemplate> getTemplates()
-
registerTemplate
public void registerTemplate(@NotNull @NotNull CustomTemplate customTemplate)
-
unregisterTemplate
public void unregisterTemplate(String name)
-
getItemGenerators
@NotNull public @NotNull List<CustomAssetGenerator<ItemAsset>> getItemGenerators()
-
registerItemGenerator
public void registerItemGenerator(@NotNull @NotNull CustomAssetGenerator<ItemAsset> generator)
-
unregisterItemGenerator
public void unregisterItemGenerator(String name)
-
getBlockGenerators
@NotNull public @NotNull List<CustomAssetGenerator<BlockAsset>> getBlockGenerators()
-
registerBlockGenerator
public void registerBlockGenerator(@NotNull @NotNull CustomAssetGenerator<BlockAsset> generator)
-
unregisterBlockGenerator
public void unregisterBlockGenerator(String name)
-
getTextureGenerators
@NotNull public @NotNull List<CustomAssetGenerator<TextureAsset>> getTextureGenerators()
-
registerModelGenerator
public void registerModelGenerator(@NotNull @NotNull CustomAssetGenerator<ModelAsset> generator)
-
unregisterModelGenerator
public void unregisterModelGenerator(String name)
-
registerTextureGenerator
public void registerTextureGenerator(@NotNull @NotNull CustomAssetGenerator<TextureAsset> generator)
-
unregisterTextureGenerator
public void unregisterTextureGenerator(String name)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
isEditable
public boolean isEditable()
-
getIcon
@NotNull public @NotNull org.bukkit.inventory.ItemStack getIcon()
-
setIcon
public void setIcon(@NotNull @NotNull org.bukkit.Material icon)
-
getBlock
@Nullable public @Nullable BlockAsset getBlock(String name)
-
getModel
@Nullable public @Nullable ModelAsset getModel(String name)
-
getTexture
@Nullable public @Nullable TextureAsset getTexture(String name)
-
getItemGenerator
@Nullable public @Nullable CustomAssetGenerator<ItemAsset> getItemGenerator(String name)
-
getBlockGenerator
@Nullable public @Nullable CustomAssetGenerator<BlockAsset> getBlockGenerator(String name)
-
getModelGenerator
@Nullable public @Nullable CustomAssetGenerator<ModelAsset> getModelGenerator(String name)
-
getTextureGenerator
@Nullable public @Nullable CustomAssetGenerator<TextureAsset> getTextureGenerator(String name)
-
export
public void export(String variation, int packFormat, @NotNull @NotNull Path path) throws IOException
- Throws:
IOException
-
getTemplate
public CustomTemplate getTemplate(String name)
-
setName
public void setName(@NotNull @NotNull String name) throws UnsupportedOperationException
- Throws:
UnsupportedOperationException
-
-