Record Class MultipartModelCombinedCondition
java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.MultipartModelCombinedCondition
- Record Components:
operation-terms-
- All Implemented Interfaces:
MultipartModelCondition
@Environment(CLIENT)
public record MultipartModelCombinedCondition(MultipartModelCombinedCondition.LogicalOperator operation, List<MultipartModelCondition> terms)
extends Record
implements MultipartModelCondition
- Mappings:
Namespace Name named net/minecraft/client/render/model/json/MultipartModelCombinedConditionintermediary net/minecraft/class_10806official gtmnamed operationintermediary comp_3758official bnamed termsintermediary comp_3759official c
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MultipartModelCombinedCondition.LogicalOperatorThe field for theoperationrecord component.private final List<MultipartModelCondition> The field for thetermsrecord component.Fields inherited from interface net.minecraft.client.render.model.json.MultipartModelCondition
CODEC -
Constructor Summary
ConstructorsConstructorDescriptionMultipartModelCombinedCondition(MultipartModelCombinedCondition.LogicalOperator logicalOperator, List<MultipartModelCondition> list) -
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.instantiate(StateManager<O, S> value) 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
-
Constructor Details
-
MultipartModelCombinedCondition
public MultipartModelCombinedCondition(MultipartModelCombinedCondition.LogicalOperator logicalOperator, List<MultipartModelCondition> list)
-
-
Method Details
-
instantiate
- Specified by:
instantiatein interfaceMultipartModelCondition- Mappings:
Namespace Name Mixin selector named instantiateLnet/minecraft/client/render/model/json/MultipartModelCondition;instantiate(Lnet/minecraft/state/StateManager;)Ljava/util/function/Predicate;intermediary instantiateLnet/minecraft/class_815;instantiate(Lnet/minecraft/class_2689;)Ljava/util/function/Predicate;official instantiateLgtn;instantiate(Lebr;)Ljava/util/function/Predicate;
-
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). -
operation
Returns the value of theoperationrecord component.- Returns:
- the value of the
operationrecord component
-
terms
Returns the value of thetermsrecord component.- Returns:
- the value of the
termsrecord component
-