Package dev.linwood.itemmods.addon.model
Class CubitBlockModel
- java.lang.Object
-
public class CubitBlockModel extends ModelAsset
-
-
Field Summary
-
Fields inherited from class dev.linwood.itemmods.pack.DefinedNamedPackObject
GSON, name
-
-
Constructor Summary
Constructors Constructor Description CubitBlockModel(@NotNull java.lang.String name)
CubitBlockModel(@NotNull java.lang.String name, @NotNull com.google.gson.JsonObject jsonObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
buildTemplate(java.lang.String variation)
dev.linwood.api.ui.template.gui.ListGui
createGui(TemplateData data)
@NotNull org.bukkit.inventory.ItemStack
getIcon(java.lang.String namespace)
@Nullable java.util.Map<java.lang.String,PackObject>
getTextures(TemplateData data)
@NotNull java.util.Set<java.lang.String>
getVariations()
void
setTextures(TemplateData data, @Nullable java.util.Map<java.lang.String,PackObject> textures)
-
Methods inherited from class dev.linwood.itemmods.pack.asset.raw.ModelAsset
export, getDefaultJsonObject, getFallbackTexture, getJsonObject, getJsonObjectOrDefault, getStaticModel, isStatic, save, setDefaultJsonObject, setFallbackTexture, setJsonObject, setStaticModel
-
Methods inherited from class dev.linwood.itemmods.pack.asset.raw.RawAsset
getData, getDataOrDefault, getDefaultTexture, removeVariation, setData, setData, setDefaultData, setDefaultData
-
Methods inherited from class dev.linwood.itemmods.pack.asset.CustomPackAsset
getTemplates, registerTemplate, registerTemplate, unregisterTemplate, unregisterTemplate
-
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
-
getIcon
@NotNull public @NotNull org.bukkit.inventory.ItemStack getIcon(java.lang.String namespace)
-
getTextures
@Nullable public @Nullable java.util.Map<java.lang.String,PackObject> getTextures(TemplateData data)
-
setTextures
public void setTextures(TemplateData data, @Nullable @Nullable java.util.Map<java.lang.String,PackObject> textures)
-
createGui
public dev.linwood.api.ui.template.gui.ListGui createGui(TemplateData data)
-
buildTemplate
protected java.lang.String buildTemplate(java.lang.String variation)
-
getVariations
@NotNull public @NotNull java.util.Set<java.lang.String> getVariations()
- Overrides:
getVariations
in classRawAsset
-
-