Record Class ModelChildren.ModelOutliner

java.lang.Object
java.lang.Record
kr.toxicity.model.api.data.raw.ModelChildren.ModelOutliner
Record Components:
group - group
children - children
All Implemented Interfaces:
ModelChildren
Enclosing interface:
ModelChildren

public static record ModelChildren.ModelOutliner(@NotNull ModelGroup group, @NotNull @Unmodifiable List<ModelChildren> children) extends Record implements ModelChildren
A raw outliner of models.
  • Constructor Details

    • ModelOutliner

      public ModelOutliner(@NotNull @NotNull ModelGroup group, @NotNull @NotNull @Unmodifiable List<ModelChildren> children)
      Creates an instance of a ModelOutliner record class.
      Parameters:
      group - the value for the group record component
      children - the value for the children record component
  • Method Details

    • toBlueprint

      @NotNull public @NotNull BlueprintElement toBlueprint(@NotNull @NotNull ModelLoadContext context)
      Description copied from interface: ModelChildren
      Converts children to blueprint children
      Specified by:
      toBlueprint in interface ModelChildren
      Parameters:
      context - context
      Returns:
      children
    • flatten

      @NotNull public @NotNull Stream<ModelChildren> flatten()
      Description copied from interface: ModelChildren
      Flattens this children tree
      Specified by:
      flatten in interface ModelChildren
      Returns:
      flatten stream
    • uuid

      @NotNull public @NotNull String uuid()
      Description copied from interface: ModelChildren
      Gets uuid
      Specified by:
      uuid in interface ModelChildren
      Returns:
      uuid
    • 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.
    • group

      @NotNull public @NotNull ModelGroup group()
      Returns the value of the group record component.
      Returns:
      the value of the group record component
    • children

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