Record Class BlockModelDefinition.Multipart
java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.BlockModelDefinition.Multipart
- Record Components:
selectors-
- Enclosing class:
BlockModelDefinition
@Environment(CLIENT)
public static record BlockModelDefinition.Multipart(List<MultipartModelComponent> selectors)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/model/json/BlockModelDefinition$Multipartintermediary net/minecraft/class_790$class_9982official hhp$anamed selectorsintermediary comp_3052official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BlockModelDefinition.Multipart> private final List<MultipartModelComponent> The field for theselectorsrecord component. -
Constructor Summary
Constructors -
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.Returns the value of theselectorsrecord component.toModel(StateManager<Block, BlockState> stateManager) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
selectors
The field for theselectorsrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/client/render/model/json/BlockModelDefinition$Multipart;CODEC:Lcom/mojang/serialization/Codec;intermediary field_56951Lnet/minecraft/class_790$class_9982;field_56951:Lcom/mojang/serialization/Codec;official aLhhp$a;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Multipart
-
-
Method Details
-
toModel
public MultipartBlockStateModel.MultipartUnbaked toModel(StateManager<Block, BlockState> stateManager) - Mappings:
Namespace Name Mixin selector named toModelLnet/minecraft/client/render/model/json/BlockModelDefinition$Multipart;toModel(Lnet/minecraft/state/StateManager;)Lnet/minecraft/client/render/model/MultipartBlockStateModel$MultipartUnbaked;intermediary method_62339Lnet/minecraft/class_790$class_9982;method_62339(Lnet/minecraft/class_2689;)Lnet/minecraft/class_10895$class_816;official aLhhp$a;a(Lejn;)Lhig$c;
-
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). -
selectors
Returns the value of theselectorsrecord component.- Returns:
- the value of the
selectorsrecord component
-