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