Record Class MultipartModelComponent
java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.MultipartModelComponent
- Record Components:
selector
-model
-
@Environment(CLIENT)
public record MultipartModelComponent(Optional<MultipartModelCondition> selector, BlockStateModel.Unbaked model)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/model/json/MultipartModelComponent
intermediary net/minecraft/class_819
official gtq
named selector
intermediary comp_3764
official b
named model
intermediary comp_3765
official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<MultipartModelComponent> private final BlockStateModel.Unbaked
The field for themodel
record component.private final Optional
<MultipartModelCondition> The field for theselector
record component. -
Constructor Summary
ConstructorsConstructorDescriptionMultipartModelComponent
(Optional<MultipartModelCondition> optional, BlockStateModel.Unbaked model) -
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> value) model()
Returns the value of themodel
record component.selector()
Returns the value of theselector
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
selector
The field for theselector
record component. -
model
The field for themodel
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/client/render/model/json/MultipartModelComponent;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_56952
Lnet/minecraft/class_819;field_56952:Lcom/mojang/serialization/Codec;
official a
Lgtq;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
MultipartModelComponent
public MultipartModelComponent(Optional<MultipartModelCondition> optional, BlockStateModel.Unbaked model) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/render/model/json/MultipartModelComponent;<init>(Ljava/util/Optional;Lnet/minecraft/client/render/model/BlockStateModel$Unbaked;)V
intermediary <init>
Lnet/minecraft/class_819;<init>(Ljava/util/Optional;Lnet/minecraft/class_1087$class_10892;)V
official <init>
Lgtq;<init>(Ljava/util/Optional;Lgta$b;)V
-
-
Method Details
-
init
- Mappings:
Namespace Name Mixin selector named init
Lnet/minecraft/client/render/model/json/MultipartModelComponent;init(Lnet/minecraft/state/StateManager;)Ljava/util/function/Predicate;
intermediary method_67981
Lnet/minecraft/class_819;method_67981(Lnet/minecraft/class_2689;)Ljava/util/function/Predicate;
official a
Lgtq;a(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)
. -
selector
Returns the value of theselector
record component.- Returns:
- the value of the
selector
record component
-
model
Returns the value of themodel
record component.- Returns:
- the value of the
model
record component
-