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.CustomNamedAsset
-
- dev.linwood.itemmods.pack.asset.CustomPackAsset
-
- Direct Known Subclasses:
BlockAsset
,ItemAsset
,RawAsset
public abstract class CustomPackAsset extends CustomNamedAsset
-
-
Field Summary
-
Fields inherited from class dev.linwood.itemmods.pack.DefinedNamedPackObject
GSON, name
-
-
Constructor Summary
Constructors Constructor Description CustomPackAsset(@NotNull java.lang.String name)
CustomPackAsset(@NotNull java.lang.String name, @NotNull com.google.gson.JsonObject jsonObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.util.List<TemplateData>
getTemplates()
void
registerTemplate(TemplateData data)
void
registerTemplate(PackObject template)
com.google.gson.JsonObject
save(java.lang.String namespace)
void
unregisterTemplate(int index)
void
unregisterTemplate(PackObject packObject)
-
Methods inherited from class dev.linwood.itemmods.pack.asset.CustomNamedAsset
getDisplayName, removeDisplayName, setDisplayName
-
Methods inherited from class dev.linwood.itemmods.pack.DefinedNamedPackObject
getName, setName
-
-
-
-
Method Detail
-
getTemplates
@NotNull public @NotNull java.util.List<TemplateData> getTemplates()
-
registerTemplate
public void registerTemplate(TemplateData data)
-
registerTemplate
public void registerTemplate(PackObject template)
-
unregisterTemplate
public void unregisterTemplate(int index)
-
unregisterTemplate
public void unregisterTemplate(PackObject packObject)
-
save
public com.google.gson.JsonObject save(java.lang.String namespace)
- Overrides:
save
in classCustomNamedAsset
-
-