Package dev.linwood.itemmods.addon.model
Class CubitBlockModel
- java.lang.Object
-
- dev.linwood.itemmods.pack.DefinedNamedPackObject
-
- dev.linwood.itemmods.pack.asset.PackAsset
-
- dev.linwood.itemmods.pack.asset.raw.RawAsset
-
- dev.linwood.itemmods.pack.asset.raw.ModelAsset
-
- dev.linwood.itemmods.addon.model.CubitBlockModel
-
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 String name)
CubitBlockModel(@NotNull String name, @NotNull com.google.gson.JsonObject jsonObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
buildTemplate(String variation)
dev.linwood.api.ui.template.gui.ListGui
createGui(CustomData data)
@NotNull org.bukkit.inventory.ItemStack
getIcon(String namespace)
@Nullable Map<String,PackObject>
getTextures(CustomData data)
@NotNull Set<String>
getVariations()
void
setTextures(CustomData data, @Nullable Map<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.DefinedNamedPackObject
getName, setName
-
-
-
-
Method Detail
-
getIcon
@NotNull public @NotNull org.bukkit.inventory.ItemStack getIcon(String namespace)
-
getTextures
@Nullable public @Nullable Map<String,PackObject> getTextures(CustomData data)
-
setTextures
public void setTextures(CustomData data, @Nullable @Nullable Map<String,PackObject> textures)
-
createGui
public dev.linwood.api.ui.template.gui.ListGui createGui(CustomData data)
-
getVariations
@NotNull public @NotNull Set<String> getVariations()
- Overrides:
getVariations
in classRawAsset
-
-