Package dev.linwood.itemmods.pack.asset
Class CustomNamedAsset
- 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.CustomNamedAsset
-
- Direct Known Subclasses:
ItemAsset
public abstract class CustomNamedAsset extends CustomPackAsset
-
-
Field Summary
-
Fields inherited from class dev.linwood.itemmods.pack.DefinedNamedPackObject
GSON, name
-
-
Constructor Summary
Constructors Constructor Description CustomNamedAsset(@NotNull String name)
CustomNamedAsset(@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()
void
removeDisplayName()
com.google.gson.JsonObject
save(String namespace)
void
setDisplayName(@Nullable TranslatableName displayName)
-
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
-
getDisplayName
@Nullable public @Nullable TranslatableName getDisplayName()
-
setDisplayName
public void setDisplayName(@Nullable @Nullable TranslatableName displayName)
-
removeDisplayName
public void removeDisplayName()
-
save
public com.google.gson.JsonObject save(String namespace)
- Overrides:
save
in classCustomPackAsset
-
-