Record Class BlockModelDefinition
java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.BlockModelDefinition
- Record Components:
variantMap-multipartModel-
@Environment(CLIENT)
public record BlockModelDefinition(Map<String,WeightedUnbakedModel> variantMap, Optional<MultipartUnbakedModel.Serialized> multipartModel)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/model/json/BlockModelDefinitionintermediary net/minecraft/class_790official gscnamed variantMapintermediary comp_3745official bnamed multipartModelintermediary comp_3746official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BlockModelDefinition> private static final Loggerprivate final Optional<MultipartUnbakedModel.Serialized> The field for themultipartModelrecord component.private final Map<String, WeightedUnbakedModel> The field for thevariantMaprecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBlockModelDefinition(Map<String, WeightedUnbakedModel> map, Optional<MultipartUnbakedModel.Serialized> optional) -
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 themultipartModelrecord component.parse(StateManager<Block, BlockState> stateManager, Supplier<String> idSupplier) final StringtoString()Returns a string representation of this record class.Returns the value of thevariantMaprecord component.
-
Field Details
-
variantMap
The field for thevariantMaprecord component. -
multipartModel
The field for themultipartModelrecord component. -
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/client/render/model/json/BlockModelDefinition;LOGGER:Lorg/slf4j/Logger;intermediary field_53162Lnet/minecraft/class_790;field_53162:Lorg/slf4j/Logger;official dLgsc;d:Lorg/slf4j/Logger;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/client/render/model/json/BlockModelDefinition;CODEC:Lcom/mojang/serialization/Codec;intermediary field_56928Lnet/minecraft/class_790;field_56928:Lcom/mojang/serialization/Codec;official aLgsc;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
BlockModelDefinition
public BlockModelDefinition(Map<String, WeightedUnbakedModel> map, Optional<MultipartUnbakedModel.Serialized> optional)
-
-
Method Details
-
parse
public Map<BlockState,BakedModel.GroupableModel> parse(StateManager<Block, BlockState> stateManager, Supplier<String> idSupplier) - Mappings:
Namespace Name Mixin selector named parseLnet/minecraft/client/render/model/json/BlockModelDefinition;parse(Lnet/minecraft/state/StateManager;Ljava/util/function/Supplier;)Ljava/util/Map;intermediary method_62327Lnet/minecraft/class_790;method_62327(Lnet/minecraft/class_2689;Ljava/util/function/Supplier;)Ljava/util/Map;official aLgsc;a(Leau;Ljava/util/function/Supplier;)Ljava/util/Map;
-
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). -
variantMap
Returns the value of thevariantMaprecord component.- Returns:
- the value of the
variantMaprecord component
-
multipartModel
Returns the value of themultipartModelrecord component.- Returns:
- the value of the
multipartModelrecord component
-