Record Class SimpleMultipartModelSelector.Terms
java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.SimpleMultipartModelSelector.Terms
- Record Components:
entries-
- Enclosing class:
SimpleMultipartModelSelector
@Environment(CLIENT)
public static record SimpleMultipartModelSelector.Terms(List<SimpleMultipartModelSelector.Term> entries)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/model/json/SimpleMultipartModelSelector$Termsintermediary net/minecraft/class_818$class_10808official gto$bnamed entriesintermediary comp_3763official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.serialization.Codec<String> private static final charprivate final List<SimpleMultipartModelSelector.Term> The field for theentriesrecord component.private static final Joinerprivate static final Splitterstatic final com.mojang.serialization.Codec<SimpleMultipartModelSelector.Terms> -
Constructor Summary
ConstructorsConstructorDescriptionTerms(List<SimpleMultipartModelSelector.Term> entries) Creates an instance of aTermsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionentries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.private <T extends Comparable<T>>
Predicate<T> instantiate(Object object, Property<T> property, SimpleMultipartModelSelector.Term term) <O,S extends State<O, S>, T extends Comparable<T>>
Predicate<S> instantiate(O object, Property<T> property) private <T extends Comparable<T>>
TparseValue(Object object, Property<T> property, String value) toString()Returns a string representation of this record class.static com.mojang.serialization.DataResult<SimpleMultipartModelSelector.Terms>
-
Field Details
-
entries
The field for theentriesrecord component. -
DELIMITER
private static final char DELIMITER- See Also:
- Mappings:
Namespace Name Mixin selector named DELIMITERLnet/minecraft/client/render/model/json/SimpleMultipartModelSelector$Terms;DELIMITER:Cintermediary field_56947Lnet/minecraft/class_818$class_10808;field_56947:Cofficial cLgto$b;c:C
-
JOINER
- Mappings:
Namespace Name Mixin selector named JOINERLnet/minecraft/client/render/model/json/SimpleMultipartModelSelector$Terms;JOINER:Lcom/google/common/base/Joiner;intermediary field_56948Lnet/minecraft/class_818$class_10808;field_56948:Lcom/google/common/base/Joiner;official dLgto$b;d:Lcom/google/common/base/Joiner;
-
SPLITTER
- Mappings:
Namespace Name Mixin selector named SPLITTERLnet/minecraft/client/render/model/json/SimpleMultipartModelSelector$Terms;SPLITTER:Lcom/google/common/base/Splitter;intermediary field_56949Lnet/minecraft/class_818$class_10808;field_56949:Lcom/google/common/base/Splitter;official eLgto$b;e:Lcom/google/common/base/Splitter;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/client/render/model/json/SimpleMultipartModelSelector$Terms;CODEC:Lcom/mojang/serialization/Codec;intermediary field_56950Lnet/minecraft/class_818$class_10808;field_56950:Lcom/mojang/serialization/Codec;official fLgto$b;f:Lcom/mojang/serialization/Codec;
-
VALUE_CODEC
- Mappings:
Namespace Name Mixin selector named VALUE_CODECLnet/minecraft/client/render/model/json/SimpleMultipartModelSelector$Terms;VALUE_CODEC:Lcom/mojang/serialization/Codec;intermediary field_56946Lnet/minecraft/class_818$class_10808;field_56946:Lcom/mojang/serialization/Codec;official aLgto$b;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Terms
Creates an instance of aTermsrecord class.- Parameters:
entries- the value for theentriesrecord component
-
-
Method Details
-
tryParse
public static com.mojang.serialization.DataResult<SimpleMultipartModelSelector.Terms> tryParse(String terms) - Mappings:
Namespace Name Mixin selector named tryParseLnet/minecraft/client/render/model/json/SimpleMultipartModelSelector$Terms;tryParse(Ljava/lang/String;)Lcom/mojang/serialization/DataResult;intermediary method_67972Lnet/minecraft/class_818$class_10808;method_67972(Ljava/lang/String;)Lcom/mojang/serialization/DataResult;official aLgto$b;a(Ljava/lang/String;)Lcom/mojang/serialization/DataResult;
-
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. -
instantiate
public <O,S extends State<O, Predicate<S> instantiateS>, T extends Comparable<T>> (O object, Property<T> property) - Mappings:
Namespace Name Mixin selector named instantiateLnet/minecraft/client/render/model/json/SimpleMultipartModelSelector$Terms;instantiate(Ljava/lang/Object;Lnet/minecraft/state/property/Property;)Ljava/util/function/Predicate;intermediary method_67969Lnet/minecraft/class_818$class_10808;method_67969(Ljava/lang/Object;Lnet/minecraft/class_2769;)Ljava/util/function/Predicate;official aLgto$b;a(Ljava/lang/Object;Lect;)Ljava/util/function/Predicate;
-
parseValue
- Mappings:
Namespace Name Mixin selector named parseValueLnet/minecraft/client/render/model/json/SimpleMultipartModelSelector$Terms;parseValue(Ljava/lang/Object;Lnet/minecraft/state/property/Property;Ljava/lang/String;)Ljava/lang/Comparable;intermediary method_67971Lnet/minecraft/class_818$class_10808;method_67971(Ljava/lang/Object;Lnet/minecraft/class_2769;Ljava/lang/String;)Ljava/lang/Comparable;official aLgto$b;a(Ljava/lang/Object;Lect;Ljava/lang/String;)Ljava/lang/Comparable;
-
instantiate
private <T extends Comparable<T>> Predicate<T> instantiate(Object object, Property<T> property, SimpleMultipartModelSelector.Term term) - Mappings:
Namespace Name Mixin selector named instantiateLnet/minecraft/client/render/model/json/SimpleMultipartModelSelector$Terms;instantiate(Ljava/lang/Object;Lnet/minecraft/state/property/Property;Lnet/minecraft/client/render/model/json/SimpleMultipartModelSelector$Term;)Ljava/util/function/Predicate;intermediary method_67970Lnet/minecraft/class_818$class_10808;method_67970(Ljava/lang/Object;Lnet/minecraft/class_2769;Lnet/minecraft/class_818$class_10807;)Ljava/util/function/Predicate;official aLgto$b;a(Ljava/lang/Object;Lect;Lgto$a;)Ljava/util/function/Predicate;
-
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). -
entries
Returns the value of theentriesrecord component.- Returns:
- the value of the
entriesrecord component
-