Package dev.linwood.itemmods.pack.asset
Class ItemAsset
-
public class ItemAsset extends CustomNamedAsset
-
-
Field Summary
-
Fields inherited from class dev.linwood.itemmods.pack.DefinedNamedPackObject
GSON, name
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable TranslatableName
getDisplayName()
@NotNull org.bukkit.Material
getIcon()
@NotNull List<String>
getLore()
@Nullable ModelAsset
getModel()
@Nullable PackObject
getModelObject()
com.google.gson.JsonObject
save(String namespace)
void
setDisplayName(@Nullable TranslatableName displayName)
void
setLore(List<String> lore)
void
setModelObject(@Nullable PackObject modelObject)
-
Methods inherited from class dev.linwood.itemmods.pack.asset.CustomNamedAsset
removeDisplayName
-
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()
-
getDisplayName
@Nullable public @Nullable TranslatableName getDisplayName()
- Overrides:
getDisplayName
in classCustomNamedAsset
-
setDisplayName
public void setDisplayName(@Nullable @Nullable TranslatableName displayName)
- Overrides:
setDisplayName
in classCustomNamedAsset
-
getIcon
@NotNull public @NotNull org.bukkit.Material getIcon()
-
save
public com.google.gson.JsonObject save(String namespace)
- Overrides:
save
in classCustomNamedAsset
-
-