Package dev.linwood.itemmods.pack.custom
Class CustomTemplate
- java.lang.Object
-
- dev.linwood.itemmods.pack.DefinedNamedPackObject
-
- dev.linwood.itemmods.pack.asset.PackAsset
-
- dev.linwood.itemmods.pack.custom.CustomTemplate
-
- Direct Known Subclasses:
BlockSetTemplate
public abstract class CustomTemplate extends PackAsset
-
-
Field Summary
-
Fields inherited from class dev.linwood.itemmods.pack.DefinedNamedPackObject
GSON, name
-
-
Constructor Summary
Constructors Constructor Description CustomTemplate(java.lang.String name)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description @Nullable CommandAction
generateItemAction(PackObject packObject, TemplateData data)
abstract @NotNull org.bukkit.inventory.ItemStack
getItemIcon(PackObject packObject, java.lang.Class<? extends CustomPackAsset> assetClass, TemplateData data)
abstract @NotNull org.bukkit.inventory.ItemStack
getPreviewIcon()
boolean
isCompatible(PackObject packObject, CustomPackAsset asset)
-
Methods inherited from class dev.linwood.itemmods.pack.DefinedNamedPackObject
getName, setName
-
-
-
-
Method Detail
-
generateItemAction
@Nullable public @Nullable CommandAction generateItemAction(PackObject packObject, TemplateData data)
-
isCompatible
public boolean isCompatible(PackObject packObject, CustomPackAsset asset)
-
getPreviewIcon
@NotNull public abstract @NotNull org.bukkit.inventory.ItemStack getPreviewIcon()
-
getItemIcon
@NotNull public abstract @NotNull org.bukkit.inventory.ItemStack getItemIcon(PackObject packObject, java.lang.Class<? extends CustomPackAsset> assetClass, TemplateData data)
-
-