Record Class ModelVariantMap
java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.ModelVariantMap
- Record Components:
variantMap-multipartModel-
@Environment(CLIENT)
public record ModelVariantMap(Map<String,WeightedUnbakedModel> variantMap, Optional<MultipartUnbakedModel.Serialized> multipartModel)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/model/json/ModelVariantMapintermediary net/minecraft/class_790official grxnamed variantMapintermediary comp_3745official bnamed multipartModelintermediary comp_3746official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ModelVariantMap> 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
ConstructorsConstructorDescriptionModelVariantMap(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> supplier) 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/ModelVariantMap;LOGGER:Lorg/slf4j/Logger;intermediary field_53162Lnet/minecraft/class_790;field_53162:Lorg/slf4j/Logger;official dLgrx;d:Lorg/slf4j/Logger;
-
field_56928
- Mappings:
Namespace Name Mixin selector named field_56928Lnet/minecraft/client/render/model/json/ModelVariantMap;field_56928:Lcom/mojang/serialization/Codec;intermediary field_56928Lnet/minecraft/class_790;field_56928:Lcom/mojang/serialization/Codec;official aLgrx;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
ModelVariantMap
public ModelVariantMap(Map<String, WeightedUnbakedModel> map, Optional<MultipartUnbakedModel.Serialized> optional)
-
-
Method Details
-
parse
public Map<BlockState,BakedModel.GroupableModel> parse(StateManager<Block, BlockState> stateManager, Supplier<String> supplier) - Mappings:
Namespace Name Mixin selector named parseLnet/minecraft/client/render/model/json/ModelVariantMap;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 aLgrx;a(Leap;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
-