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/MultipartModelCombinedCondition
intermediary net/minecraft/class_10806
official gtm
named operation
intermediary comp_3758
official b
named terms
intermediary comp_3759
official c
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MultipartModelCombinedCondition.LogicalOperator
The field for theoperation
record component.private final List
<MultipartModelCondition> The field for theterms
record 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 boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.instantiate
(StateManager<O, S> value) Returns the value of theoperation
record component.terms()
Returns the value of theterms
record component.final String
toString()
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:
instantiate
in interfaceMultipartModelCondition
- Mappings:
Namespace Name Mixin selector named instantiate
Lnet/minecraft/client/render/model/json/MultipartModelCondition;instantiate(Lnet/minecraft/state/StateManager;)Ljava/util/function/Predicate;
intermediary instantiate
Lnet/minecraft/class_815;instantiate(Lnet/minecraft/class_2689;)Ljava/util/function/Predicate;
official instantiate
Lgtn;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 theoperation
record component.- Returns:
- the value of the
operation
record component
-
terms
Returns the value of theterms
record component.- Returns:
- the value of the
terms
record component
-