Record Class ModelBlueprint
java.lang.Object
java.lang.Record
kr.toxicity.model.api.data.blueprint.ModelBlueprint
- Record Components:
name- the name of the modelresolution- the texture resolution of the modeltextures- the list of textures used by the modelelements- the hierarchical list of model elements (bones)animations- a map of animations available for this model
@Internal
public record ModelBlueprint(@NotNull String name, @NotNull ModelResolution resolution, @NotNull List<BlueprintTexture> textures, @NotNull List<BlueprintElement> elements, @NotNull Map<String, BlueprintAnimation> animations)
extends Record
Represents a fully processed model blueprint, ready for generation and rendering.
This record contains all the necessary data derived from a raw model file, including textures, structural elements (bones/cubes), and animations.
- Since:
- 1.15.2
-
Constructor Summary
ConstructorsConstructorDescriptionModelBlueprint(@NotNull String name, @NotNull ModelResolution resolution, @NotNull List<BlueprintTexture> textures, @NotNull List<BlueprintElement> elements, @NotNull Map<String, BlueprintAnimation> animations) Creates an instance of aModelBlueprintrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Map<String, BlueprintAnimation> Returns the value of theanimationsrecord component.@NotNull BlueprintLoadContextcontext()Creates a new load context for this blueprint.@NotNull List<BlueprintElement> elements()Returns the value of theelementsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull Stringname()Returns the value of thenamerecord component.@NotNull ModelResolutionReturns the value of theresolutionrecord component.@NotNull List<BlueprintTexture> textures()Returns the value of thetexturesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelBlueprint
public ModelBlueprint(@NotNull @NotNull String name, @NotNull @NotNull ModelResolution resolution, @NotNull @NotNull List<BlueprintTexture> textures, @NotNull @NotNull List<BlueprintElement> elements, @NotNull @NotNull Map<String, BlueprintAnimation> animations) Creates an instance of aModelBlueprintrecord class.- Parameters:
name- the value for thenamerecord componentresolution- the value for theresolutionrecord componenttextures- the value for thetexturesrecord componentelements- the value for theelementsrecord componentanimations- the value for theanimationsrecord component
-
-
Method Details
-
context
Creates a new load context for this blueprint.- Returns:
- a new blueprint load context
- Since:
- 3.0.0
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
name
-
resolution
Returns the value of theresolutionrecord component.- Returns:
- the value of the
resolutionrecord component
-
textures
-
elements
-
animations
Returns the value of theanimationsrecord component.- Returns:
- the value of the
animationsrecord component
-