Record Class ModelBlueprint

java.lang.Object
java.lang.Record
kr.toxicity.model.api.data.blueprint.ModelBlueprint
Record Components:
name - model name
scale - model cube scale
resolution - resolution
textures - textures
group - children group
animations - 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 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 a ModelBlueprint record class.
      Parameters:
      name - the value for the name record component
      scale - the value for the scale record component
      resolution - the value for the resolution record component
      textures - the value for the textures record component
      group - the value for the group record component
      animations - the value for the animations record component
  • Method Details

    • buildImage

      @NotNull public @NotNull @Unmodifiable List<BlueprintImage> buildImage()
      Builds blueprint image
      Returns:
      images
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      @NotNull public @NotNull String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • scale

      public float scale()
      Returns the value of the scale record component.
      Returns:
      the value of the scale record component
    • resolution

      @NotNull public @NotNull ModelResolution resolution()
      Returns the value of the resolution record component.
      Returns:
      the value of the resolution record component
    • textures

      @NotNull public @NotNull List<BlueprintTexture> textures()
      Returns the value of the textures record component.
      Returns:
      the value of the textures record component
    • group

      @NotNull public @NotNull List<BlueprintChildren> group()
      Returns the value of the group record component.
      Returns:
      the value of the group record component
    • animations

      @NotNull public @NotNull Map<String,BlueprintAnimation> animations()
      Returns the value of the animations record component.
      Returns:
      the value of the animations record component