Record Class BlockModelDefinition.Variants
java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.BlockModelDefinition.Variants
- Record Components:
- models-
- Enclosing class:
- BlockModelDefinition
@Environment(CLIENT)
public static record BlockModelDefinition.Variants(Map<String,BlockStateModel.Unbaked> models)
extends Record 
- Mappings:
- Namespace - Name - named - net/minecraft/client/render/model/json/BlockModelDefinition$Variants- intermediary - net/minecraft/class_790$class_10888- official - gsy$b- named - models- intermediary - comp_3814- official - b
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BlockModelDefinition.Variants> private final Map<String, BlockStateModel.Unbaked> The field for themodelsrecord component.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.voidload(StateManager<Block, BlockState> stateManager, Supplier<String> idSupplier, BiConsumer<BlockState, BlockStateModel.UnbakedGrouped> callback) models()Returns the value of themodelsrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
modelsThe field for themodelsrecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/client/render/model/json/BlockModelDefinition$Variants;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_57938- Lnet/minecraft/class_790$class_10888;field_57938:Lcom/mojang/serialization/Codec;- official - a- Lgsy$b;a:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
Variants
 
- 
- 
Method Details- 
loadpublic void load(StateManager<Block, BlockState> stateManager, Supplier<String> idSupplier, BiConsumer<BlockState, BlockStateModel.UnbakedGrouped> callback) - Mappings:
- Namespace - Name - Mixin selector - named - load- Lnet/minecraft/client/render/model/json/BlockModelDefinition$Variants;load(Lnet/minecraft/state/StateManager;Ljava/util/function/Supplier;Ljava/util/function/BiConsumer;)V- intermediary - method_68508- Lnet/minecraft/class_790$class_10888;method_68508(Lnet/minecraft/class_2689;Ljava/util/function/Supplier;Ljava/util/function/BiConsumer;)V- official - a- Lgsy$b;a(Lebr;Ljava/util/function/Supplier;Ljava/util/function/BiConsumer;)V
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
modelsReturns the value of themodelsrecord component.- Returns:
- the value of the modelsrecord component
 
 
-