Package kr.toxicity.model.api.data.raw
Record Class ModelOutliner.Reference
java.lang.Object
java.lang.Record
kr.toxicity.model.api.data.raw.ModelOutliner.Reference
- Record Components:
uuid- the UUID of the referenced element
- All Implemented Interfaces:
ModelOutliner
- Enclosing interface:
ModelOutliner
public static record ModelOutliner.Reference(@NotNull String uuid)
extends Record
implements ModelOutliner
Represents a leaf node in the outliner, referencing a specific element by UUID.
- Since:
- 1.15.2
-
Nested Class Summary
Nested classes/interfaces inherited from interface kr.toxicity.model.api.data.raw.ModelOutliner
ModelOutliner.Reference, ModelOutliner.Tree -
Field Summary
Fields inherited from interface kr.toxicity.model.api.data.raw.ModelOutliner
PARSER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@NotNull Stream<ModelOutliner> flatten()Flattens the outliner tree into a stream of all nodes.final inthashCode()Returns a hash code value for this object.@NotNull BlueprintElementtoBlueprint(@NotNull ModelLoadContext context) Converts this outliner node into a processedBlueprintElement.final StringtoString()Returns a string representation of this record class.@NotNull Stringuuid()Returns the value of theuuidrecord component.
-
Constructor Details
-
Reference
Creates an instance of aReferencerecord class.- Parameters:
uuid- the value for theuuidrecord component
-
-
Method Details
-
toBlueprint
Description copied from interface:ModelOutlinerConverts this outliner node into a processedBlueprintElement.- Specified by:
toBlueprintin interfaceModelOutliner- Parameters:
context- the model loading context- Returns:
- the blueprint element
-
flatten
Description copied from interface:ModelOutlinerFlattens the outliner tree into a stream of all nodes.- Specified by:
flattenin interfaceModelOutliner- Returns:
- a stream of all outliner nodes
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
uuid
Returns the value of theuuidrecord component.- Specified by:
uuidin interfaceModelOutliner- Returns:
- the value of the
uuidrecord component
-