Package dev.linwood.itemmods.pack.asset
Class CustomPackAsset
- java.lang.Object
-
- dev.linwood.itemmods.pack.DefinedNamedPackObject
-
- dev.linwood.itemmods.pack.asset.PackAsset
-
- dev.linwood.itemmods.pack.asset.CustomPackAsset
-
- Direct Known Subclasses:
BlockAsset
,CustomNamedAsset
public abstract class CustomPackAsset extends PackAsset
-
-
Field Summary
-
Fields inherited from class dev.linwood.itemmods.pack.DefinedNamedPackObject
GSON, name
-
-
Constructor Summary
Constructors Constructor Description CustomPackAsset(@NotNull String name)
CustomPackAsset(@NotNull String name, @NotNull com.google.gson.JsonObject jsonObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull List<CustomData>
getCustomData()
void
registerCustomData(CustomData data)
void
registerCustomData(PackObject template)
com.google.gson.JsonObject
save(String namespace)
void
unregisterCustomData(int index)
void
unregisterCustomData(PackObject packObject)
-
Methods inherited from class dev.linwood.itemmods.pack.DefinedNamedPackObject
getName, setName
-
-
-
-
Method Detail
-
getCustomData
@NotNull public @NotNull List<CustomData> getCustomData()
-
registerCustomData
public void registerCustomData(CustomData data)
-
registerCustomData
public void registerCustomData(PackObject template)
-
unregisterCustomData
public void unregisterCustomData(int index)
-
unregisterCustomData
public void unregisterCustomData(PackObject packObject)
-
-