Model
@Serializable
Parameters
parent
The path to the parent model or null
if there is no parent.
textures
A map of texture names to texture paths.
elements
A list of voxels that make up the model.
ambientOcclusion
(Only relevant for block models) Whether ambient occlusion is enabled for the model.
guiLight
(Only relevant for item models) The direction of the light for the item model in the GUI.
display
(Only relevant for item models) A map of display positions to display settings.
Constructors
Link copied to clipboard
constructor(parent: ResourcePath<ResourceType.Model>? = null, textures: Map<String, String> = emptyMap(), elements: List<Model.Element>? = null, ambientOcclusion: Boolean? = null, guiLight: Model.GuiLight? = null, display: Map<Model.Display.Position, Model.Display> = emptyMap())
Types
Link copied to clipboard
An axis in 3D space.
Link copied to clipboard
A direction in 3D space.
Link copied to clipboard
@Serializable
A voxel of a Model.
Link copied to clipboard
Specifies the direction of the light for the item model in the GUI.