ModelData
Represents the raw data structure of a model file, typically parsed from a .bbmodel JSON file.
This record holds all the top-level components of a BlockBench model, including metadata, elements, textures, and animations. It serves as the initial data container before being processed into a ModelBlueprint.
Since
1.15.2
Parameters
meta
the metadata of the model
resolution
the texture resolution
elements
the list of cube/mesh elements
outliner
the hierarchical structure of the model
textures
the list of textures used in the model
animations
the list of animations
groups
the list of groups (used in BlockBench 5.0.0+)
placeholder
the animation variable placeholders
Properties
Functions
Link copied to clipboard
Returns the list of animations, or an empty list if none are defined.
Link copied to clipboard
Asserts that the model does not contain any unsupported element types.
Link copied to clipboard
Returns the list of groups, or an empty list if none are defined.
Link copied to clipboard
Converts this raw model data into a processed ModelBlueprint.
@NotNull
Converts this raw model data into a processed ModelBlueprint with a specific loading mode.
Link copied to clipboard
Returns the animation variable placeholders, or an empty placeholder if none are defined.