Record Class KeyValueCondition.Term
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.block.model.multipart.KeyValueCondition.Term
- Enclosing class:
KeyValueCondition
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
negated()
Returns the value of thenegated
record component.static KeyValueCondition.Term
toString()
Returns a string representation of this record class.value()
Returns the value of thevalue
record component.
-
Field Details
-
value
The field for thevalue
record component. -
negated
private final boolean negatedThe field for thenegated
record component. -
NEGATE
- See Also:
-
-
Constructor Details
-
Term
Creates an instance of aTerm
record class.- Parameters:
value
- the value for thevalue
record componentnegated
- the value for thenegated
record component
-
-
Method Details
-
parse
-
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 '=='. -
value
Returns the value of thevalue
record component.- Returns:
- the value of the
value
record component
-
negated
public boolean negated()Returns the value of thenegated
record component.- Returns:
- the value of the
negated
record component
-