Package dev.linwood.itemmods.pack.asset
Class BlockAsset
- java.lang.Object
-
- dev.linwood.itemmods.pack.DefinedNamedPackObject
-
- dev.linwood.itemmods.pack.asset.PackAsset
-
- dev.linwood.itemmods.pack.asset.CustomNamedAsset
-
- dev.linwood.itemmods.pack.asset.CustomPackAsset
-
- dev.linwood.itemmods.pack.asset.BlockAsset
-
- All Implemented Interfaces:
DisplayedObject
public class BlockAsset extends CustomPackAsset implements DisplayedObject
-
-
Field Summary
-
Fields inherited from class dev.linwood.itemmods.pack.DefinedNamedPackObject
GSON, name
-
-
Constructor Summary
Constructors Constructor Description BlockAsset(@NotNull java.lang.String name)
BlockAsset(@NotNull java.lang.String name, @NotNull com.google.gson.JsonObject jsonObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable ModelAsset
getModel()
@Nullable PackObject
getModelObject()
org.bukkit.inventory.ItemStack
getModelTexture()
@Nullable PackObject
getReferenceItem()
com.google.gson.JsonObject
save(java.lang.String namespace)
void
setModelObject(@Nullable PackObject modelObject)
void
setReferenceItem(@Nullable PackObject referenceItem)
-
Methods inherited from class dev.linwood.itemmods.pack.asset.CustomPackAsset
getTemplates, registerTemplate, registerTemplate, unregisterTemplate, unregisterTemplate
-
Methods inherited from class dev.linwood.itemmods.pack.asset.CustomNamedAsset
getDisplayName, removeDisplayName, setDisplayName
-
Methods inherited from class dev.linwood.itemmods.pack.DefinedNamedPackObject
getName, setName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface dev.linwood.itemmods.pack.DisplayedObject
getDisplayName
-
-
-
-
Method Detail
-
getModelObject
@Nullable public @Nullable PackObject getModelObject()
-
setModelObject
public void setModelObject(@Nullable @Nullable PackObject modelObject)
-
getModel
@Nullable public @Nullable ModelAsset getModel()
-
getModelTexture
public org.bukkit.inventory.ItemStack getModelTexture()
-
getReferenceItem
@Nullable public @Nullable PackObject getReferenceItem()
-
setReferenceItem
public void setReferenceItem(@Nullable @Nullable PackObject referenceItem)
-
save
public com.google.gson.JsonObject save(java.lang.String namespace)
- Overrides:
save
in classCustomPackAsset
-
-