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/ModelVariantMap
intermediary net/minecraft/class_790
official grx
named variantMap
intermediary comp_3745
official b
named multipartModel
intermediary comp_3746
official c
  • Field Details

    • variantMap

      private final Map<String,WeightedUnbakedModel> variantMap
      The field for the variantMap record component.
    • multipartModel

      private final Optional<MultipartUnbakedModel.Serialized> multipartModel
      The field for the multipartModel record component.
    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/client/render/model/json/ModelVariantMap;LOGGER:Lorg/slf4j/Logger;
      intermediary field_53162 Lnet/minecraft/class_790;field_53162:Lorg/slf4j/Logger;
      official d Lgrx;d:Lorg/slf4j/Logger;
    • field_56928

      public static final com.mojang.serialization.Codec<ModelVariantMap> field_56928
      Mappings:
      Namespace Name Mixin selector
      named field_56928 Lnet/minecraft/client/render/model/json/ModelVariantMap;field_56928:Lcom/mojang/serialization/Codec;
      intermediary field_56928 Lnet/minecraft/class_790;field_56928:Lcom/mojang/serialization/Codec;
      official a Lgrx;a:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • Method Details

    • parse

      Mappings:
      Namespace Name Mixin selector
      named parse Lnet/minecraft/client/render/model/json/ModelVariantMap;parse(Lnet/minecraft/state/StateManager;Ljava/util/function/Supplier;)Ljava/util/Map;
      intermediary method_62327 Lnet/minecraft/class_790;method_62327(Lnet/minecraft/class_2689;Ljava/util/function/Supplier;)Ljava/util/Map;
      official a Lgrx;a(Leap;Ljava/util/function/Supplier;)Ljava/util/Map;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • variantMap

      public Map<String,WeightedUnbakedModel> variantMap()
      Returns the value of the variantMap record component.
      Returns:
      the value of the variantMap record component
    • multipartModel

      public Optional<MultipartUnbakedModel.Serialized> multipartModel()
      Returns the value of the multipartModel record component.
      Returns:
      the value of the multipartModel record component