Record Class SimpleMultipartModelSelector
java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.SimpleMultipartModelSelector
- Record Components:
tests
-
- All Implemented Interfaces:
MultipartModelCondition
@Environment(CLIENT)
public record SimpleMultipartModelSelector(Map<String,SimpleMultipartModelSelector.Terms> tests)
extends Record
implements MultipartModelCondition
- Mappings:
Namespace Name named net/minecraft/client/render/model/json/SimpleMultipartModelSelector
intermediary net/minecraft/class_818
official gto
named tests
intermediary comp_3760
official c
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
static final record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<SimpleMultipartModelSelector> (package private) static final Logger
private final Map
<String, SimpleMultipartModelSelector.Terms> The field for thetests
record component. -
Constructor Summary
ConstructorsConstructorDescription -
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.init
(StateManager<O, S> stateManager, String property, SimpleMultipartModelSelector.Terms terms) instantiate
(StateManager<O, S> value) tests()
Returns the value of thetests
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
tests
The field for thetests
record component. -
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/client/render/model/json/SimpleMultipartModelSelector;LOGGER:Lorg/slf4j/Logger;
intermediary field_56944
Lnet/minecraft/class_818;field_56944:Lorg/slf4j/Logger;
official d
Lgto;d:Lorg/slf4j/Logger;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/client/render/model/json/SimpleMultipartModelSelector;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_56943
Lnet/minecraft/class_818;field_56943:Lcom/mojang/serialization/Codec;
official b
Lgto;b:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
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;
-
init
private static <O,S extends State<O, Predicate<S> initS>> (StateManager<O, S> stateManager, String property, SimpleMultipartModelSelector.Terms terms) - Mappings:
Namespace Name Mixin selector named init
Lnet/minecraft/client/render/model/json/SimpleMultipartModelSelector;init(Lnet/minecraft/state/StateManager;Ljava/lang/String;Lnet/minecraft/client/render/model/json/SimpleMultipartModelSelector$Terms;)Ljava/util/function/Predicate;
intermediary method_67961
Lnet/minecraft/class_818;method_67961(Lnet/minecraft/class_2689;Ljava/lang/String;Lnet/minecraft/class_818$class_10808;)Ljava/util/function/Predicate;
official a
Lgto;a(Lebr;Ljava/lang/String;Lgto$b;)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)
. -
tests
Returns the value of thetests
record component.- Returns:
- the value of the
tests
record component
-