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$Multipart
intermediary net/minecraft/class_790$class_9982
official gsy$a
named selectors
intermediary comp_3052
official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<BlockModelDefinition.Multipart> private final List
<MultipartModelComponent> The field for theselectors
record component. -
Constructor Summary
Constructors -
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.Returns the value of theselectors
record component.toModel
(StateManager<Block, BlockState> stateManager) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
selectors
The field for theselectors
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/client/render/model/json/BlockModelDefinition$Multipart;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_56951
Lnet/minecraft/class_790$class_9982;field_56951:Lcom/mojang/serialization/Codec;
official a
Lgsy$a;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Method Details
-
toModel
public MultipartBlockStateModel.MultipartUnbaked toModel(StateManager<Block, BlockState> stateManager) - Mappings:
Namespace Name Mixin selector named toModel
Lnet/minecraft/client/render/model/json/BlockModelDefinition$Multipart;toModel(Lnet/minecraft/state/StateManager;)Lnet/minecraft/client/render/model/MultipartBlockStateModel$MultipartUnbaked;
intermediary method_62339
Lnet/minecraft/class_790$class_9982;method_62339(Lnet/minecraft/class_2689;)Lnet/minecraft/class_10895$class_816;
official a
Lgsy$a;a(Lebr;)Lgtp$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 theselectors
record component.- Returns:
- the value of the
selectors
record component
-