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/MultipartModelComponentintermediary net/minecraft/class_819official gtqnamed selectorintermediary comp_3764official bnamed modelintermediary comp_3765official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<MultipartModelComponent> private final BlockStateModel.UnbakedThe field for themodelrecord component.private final Optional<MultipartModelCondition> The field for theselectorrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMultipartModelComponent(Optional<MultipartModelCondition> optional, BlockStateModel.Unbaked model) -
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.init(StateManager<O, S> value) model()Returns the value of themodelrecord component.selector()Returns the value of theselectorrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
selector
The field for theselectorrecord component. -
model
The field for themodelrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/client/render/model/json/MultipartModelComponent;CODEC:Lcom/mojang/serialization/Codec;intermediary field_56952Lnet/minecraft/class_819;field_56952:Lcom/mojang/serialization/Codec;official aLgtq;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;)Vintermediary <init>Lnet/minecraft/class_819;<init>(Ljava/util/Optional;Lnet/minecraft/class_1087$class_10892;)Vofficial <init>Lgtq;<init>(Ljava/util/Optional;Lgta$b;)V
-
-
Method Details
-
init
- Mappings:
Namespace Name Mixin selector named initLnet/minecraft/client/render/model/json/MultipartModelComponent;init(Lnet/minecraft/state/StateManager;)Ljava/util/function/Predicate;intermediary method_67981Lnet/minecraft/class_819;method_67981(Lnet/minecraft/class_2689;)Ljava/util/function/Predicate;official aLgtq;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 theselectorrecord component.- Returns:
- the value of the
selectorrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-