Record Class BlueprintChildren.BlueprintGroup

java.lang.Object
java.lang.Record
kr.toxicity.model.api.data.blueprint.BlueprintChildren.BlueprintGroup
Record Components:
name - group name
origin - origin
rotation - rotation
children - children
visibility - visibility
All Implemented Interfaces:
BlueprintChildren
Enclosing interface:
BlueprintChildren

public static record BlueprintChildren.BlueprintGroup(@NotNull BoneName name, @NotNull Float3 origin, @NotNull Float3 rotation, @NotNull List<BlueprintChildren> children, boolean visibility) extends Record implements BlueprintChildren
Blueprint group
  • Constructor Details

    • BlueprintGroup

      public BlueprintGroup(@NotNull @NotNull BoneName name, @NotNull @NotNull Float3 origin, @NotNull @NotNull Float3 rotation, @NotNull @NotNull List<BlueprintChildren> children, boolean visibility)
      Creates an instance of a BlueprintGroup record class.
      Parameters:
      name - the value for the name record component
      origin - the value for the origin record component
      rotation - the value for the rotation record component
      children - the value for the children record component
      visibility - the value for the visibility record component
  • Method Details

    • origin

      @NotNull public @NotNull Float3 origin()
      Returns the value of the origin record component.
      Returns:
      the value of the origin record component
    • jsonName

      @NotNull public @NotNull String jsonName(@NotNull @NotNull ModelBlueprint parent)
      Gets JSON name of blueprint.
      Parameters:
      parent - parent
      Returns:
      name
    • buildLegacyJson

      @Nullable public @Nullable BlueprintJson buildLegacyJson(boolean skipLog, float scale, @NotNull @NotNull ModelBlueprint parent)
      Gets blueprint legacy json
      Parameters:
      skipLog - skip log
      scale - scale
      parent - parent
      Returns:
      json
    • buildModernJson

      @Nullable public @Nullable @Unmodifiable List<BlueprintJson> buildModernJson(float scale, @NotNull @NotNull ModelBlueprint parent)
      Gets blueprint modern json
      Parameters:
      scale - scale
      parent - parent
      Returns:
      json
    • hitBox

      @Nullable public @Nullable NamedBoundingBox hitBox()
      Gets single hit-box
      Returns:
      bounding box
    • 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 BoneName name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • rotation

      @NotNull public @NotNull Float3 rotation()
      Returns the value of the rotation record component.
      Returns:
      the value of the rotation record component
    • children

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

      public boolean visibility()
      Returns the value of the visibility record component.
      Returns:
      the value of the visibility record component