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 aFixedResult
record class. -
Method Summary
Modifier and TypeMethodDescriptioncomponent
(net.querz.nbt.tag.Tag<?> result) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theisComponent
record component.normal
(net.querz.nbt.tag.Tag<?> result) net.querz.nbt.tag.Tag<?>
result()
Returns the value of theresult
record component.final String
toString()
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 aFixedResult
record class.- Parameters:
result
- the value for theresult
record componentisComponent
- the value for theisComponent
record 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 theresult
record component.- Returns:
- the value of the
result
record component
-
isComponent
public boolean isComponent()Returns the value of theisComponent
record component.- Returns:
- the value of the
isComponent
record component
-