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.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 String name)
BlockAsset(@NotNull String name, @NotNull com.google.gson.JsonObject jsonObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable TranslatableName
getDisplayName()
@Nullable ModelAsset
getModel()
@Nullable PackObject
getModelObject()
org.bukkit.inventory.ItemStack
getModelTexture()
@Nullable PackObject
getReferenceItem()
com.google.gson.JsonObject
save(String namespace)
void
setDisplayName(@Nullable TranslatableName displayName)
void
setModelObject(@Nullable PackObject modelObject)
void
setReferenceItem(@Nullable PackObject referenceItem)
-
Methods inherited from class dev.linwood.itemmods.pack.asset.CustomPackAsset
getCustomData, registerCustomData, registerCustomData, unregisterCustomData, unregisterCustomData
-
Methods inherited from class dev.linwood.itemmods.pack.DefinedNamedPackObject
getName, setName
-
-
-
-
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(String namespace)
- Overrides:
save
in classCustomPackAsset
-
getDisplayName
@Nullable public @Nullable TranslatableName getDisplayName()
- Specified by:
getDisplayName
in interfaceDisplayedObject
-
setDisplayName
public void setDisplayName(@Nullable @Nullable TranslatableName displayName)
-
-