Record Class ModelBlueprint
java.lang.Object
java.lang.Record
kr.toxicity.model.api.data.blueprint.ModelBlueprint
- Record Components:
name- model namescale- model cube scaleresolution- resolutiontextures- texturesgroup- children groupanimations- animations
@Internal
public record ModelBlueprint(@NotNull String name, float scale, @NotNull ModelResolution resolution, @NotNull List<BlueprintTexture> textures, @NotNull List<BlueprintChildren> group, @NotNull Map<String,BlueprintAnimation> animations)
extends Record
Parsed BlockBench model
-
Constructor Summary
ConstructorsConstructorDescriptionModelBlueprint(@NotNull String name, float scale, @NotNull ModelResolution resolution, @NotNull List<BlueprintTexture> textures, @NotNull List<BlueprintChildren> group, @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 @Unmodifiable List<BlueprintImage> Builds blueprint imagefinal booleanIndicates whether some other object is "equal to" this one.@NotNull List<BlueprintChildren> group()Returns the value of thegrouprecord component.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.floatscale()Returns the value of thescalerecord 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, float scale, @NotNull @NotNull ModelResolution resolution, @NotNull @NotNull List<BlueprintTexture> textures, @NotNull @NotNull List<BlueprintChildren> group, @NotNull @NotNull Map<String, BlueprintAnimation> animations) Creates an instance of aModelBlueprintrecord class.- Parameters:
name- the value for thenamerecord componentscale- the value for thescalerecord componentresolution- the value for theresolutionrecord componenttextures- the value for thetexturesrecord componentgroup- the value for thegrouprecord componentanimations- the value for theanimationsrecord component
-
-
Method Details
-
buildImage
Builds blueprint image- Returns:
- images
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
scale
public float scale()Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-
resolution
Returns the value of theresolutionrecord component.- Returns:
- the value of the
resolutionrecord component
-
textures
Returns the value of thetexturesrecord component.- Returns:
- the value of the
texturesrecord component
-
group
Returns the value of thegrouprecord component.- Returns:
- the value of the
grouprecord component
-
animations
Returns the value of theanimationsrecord component.- Returns:
- the value of the
animationsrecord component
-