Record Class ModelChildren.ModelGroup

java.lang.Object
java.lang.Record
kr.toxicity.model.api.data.raw.ModelChildren.ModelGroup
Record Components:
name - group name
origin - origin
rotation - rotation
uuid - uuid
children - children
_visibility - visibility
All Implemented Interfaces:
ModelChildren
Enclosing interface:
ModelChildren

public static record ModelChildren.ModelGroup(@NotNull String name, @Nullable Float3 origin, @Nullable Float3 rotation, @NotNull String uuid, @NotNull List<ModelChildren> children, @Nullable Boolean _visibility) extends Record implements ModelChildren
A raw group of models.
  • Constructor Details

    • ModelGroup

      public ModelGroup(@NotNull @NotNull String name, @Nullable @Nullable Float3 origin, @Nullable @Nullable Float3 rotation, @NotNull @NotNull String uuid, @NotNull @NotNull List<ModelChildren> children, @Nullable @Nullable Boolean _visibility)
      Creates an instance of a ModelGroup 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
      uuid - the value for the uuid 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
    • rotation

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

      public boolean visibility()
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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
    • uuid

      @NotNull public @NotNull String uuid()
      Returns the value of the uuid record component.
      Returns:
      the value of the uuid record component
    • children

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

      @Nullable @SerializedName("visibility") public @Nullable Boolean _visibility()
      Returns the value of the _visibility record component.
      Returns:
      the value of the _visibility record component