Class BlockSetTemplate
- java.lang.Object
-
- dev.linwood.itemmods.pack.DefinedNamedPackObject
-
- dev.linwood.itemmods.pack.asset.PackAsset
-
- dev.linwood.itemmods.pack.custom.CustomTemplate
-
- dev.linwood.itemmods.addon.templates.item.BlockSetTemplate
-
public class BlockSetTemplate extends CustomTemplate
-
-
Field Summary
-
Fields inherited from class dev.linwood.itemmods.pack.DefinedNamedPackObject
GSON, name
-
-
Constructor Summary
Constructors Constructor Description BlockSetTemplate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable CommandAction
generateItemAction(PackObject packObject, TemplateData data)
@Nullable PackObject
getBlock(TemplateData data)
@NotNull org.bukkit.inventory.ItemStack
getItemIcon(PackObject packObject, java.lang.Class<? extends CustomPackAsset> assetClass, TemplateData data)
@NotNull org.bukkit.inventory.ItemStack
getPreviewIcon()
boolean
isCompatible(PackObject packObject, CustomPackAsset asset)
void
setBlock(TemplateData data, @Nullable PackObject packObject)
-
Methods inherited from class dev.linwood.itemmods.pack.DefinedNamedPackObject
getName, setName
-
-
-
-
Method Detail
-
getItemIcon
@NotNull public @NotNull org.bukkit.inventory.ItemStack getItemIcon(PackObject packObject, java.lang.Class<? extends CustomPackAsset> assetClass, TemplateData data)
- Specified by:
getItemIcon
in classCustomTemplate
-
getPreviewIcon
@NotNull public @NotNull org.bukkit.inventory.ItemStack getPreviewIcon()
- Specified by:
getPreviewIcon
in classCustomTemplate
-
isCompatible
public boolean isCompatible(PackObject packObject, CustomPackAsset asset)
- Overrides:
isCompatible
in classCustomTemplate
-
generateItemAction
@Nullable public @Nullable CommandAction generateItemAction(PackObject packObject, TemplateData data)
- Overrides:
generateItemAction
in classCustomTemplate
-
getBlock
@Nullable public @Nullable PackObject getBlock(TemplateData data)
-
setBlock
public void setBlock(TemplateData data, @Nullable @Nullable PackObject packObject)
-
-