Record Class CombinedCondition
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.block.model.multipart.CombinedCondition
- All Implemented Interfaces:
Condition
public record CombinedCondition(CombinedCondition.Operation operation, List<Condition> terms)
extends Record
implements Condition
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CombinedCondition.OperationThe field for theoperationrecord component.The field for thetermsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCombinedCondition(CombinedCondition.Operation operation, List<Condition> terms) Creates an instance of aCombinedConditionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.<O, S extends StateHolder<O,S>>
Predicate<S> instantiate(StateDefinition<O, S> definition) Returns the value of theoperationrecord component.terms()Returns the value of thetermsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
operation
The field for theoperationrecord component. -
terms
-
-
Constructor Details
-
CombinedCondition
Creates an instance of aCombinedConditionrecord class.- Parameters:
operation- the value for theoperationrecord componentterms- the value for thetermsrecord component
-
-
Method Details
-
instantiate
- Specified by:
instantiatein interfaceCondition
-
toString
-
hashCode
-
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). -
operation
Returns the value of theoperationrecord component.- Returns:
- the value of the
operationrecord component
-
terms
-