Package com.loohp.limbo.utils
Record Class SchematicConversionUtils.FixedResult
java.lang.Object
java.lang.Record
com.loohp.limbo.utils.SchematicConversionUtils.FixedResult
- Enclosing class:
- SchematicConversionUtils
public static record SchematicConversionUtils.FixedResult(net.querz.nbt.tag.Tag<?> result, boolean isComponent)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionFixedResult(net.querz.nbt.tag.Tag<?> result, boolean isComponent) Creates an instance of aFixedResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncomponent(net.querz.nbt.tag.Tag<?> result) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisComponentrecord component.normal(net.querz.nbt.tag.Tag<?> result) net.querz.nbt.tag.Tag<?>result()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FixedResult
public FixedResult(net.querz.nbt.tag.Tag<?> result, boolean isComponent) Creates an instance of aFixedResultrecord class.- Parameters:
result- the value for theresultrecord componentisComponent- the value for theisComponentrecord component
-
-
Method Details
-
normal
-
component
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
result
public net.querz.nbt.tag.Tag<?> result()Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
isComponent
public boolean isComponent()Returns the value of theisComponentrecord component.- Returns:
- the value of the
isComponentrecord component
-