Record Class WeightedUnbakedModel

java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.WeightedUnbakedModel
Record Components:
variants -
All Implemented Interfaces:
BakedModel.GroupableModel, ResolvableModel

@Environment(CLIENT) public record WeightedUnbakedModel(List<ModelVariant> variants) extends Record implements BakedModel.GroupableModel
Mappings:
Namespace Name
named net/minecraft/client/render/model/json/WeightedUnbakedModel
intermediary net/minecraft/class_807
official gsd
named variants
intermediary comp_3049
official b
  • Field Details

    • variants

      private final List<ModelVariant> variants
      The field for the variants record component.
    • field_56932

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

  • Method Details

    • getEqualityGroup

      public Object getEqualityGroup(BlockState state)
      Specified by:
      getEqualityGroup in interface BakedModel.GroupableModel
      Mappings:
      Namespace Name Mixin selector
      named getEqualityGroup Lnet/minecraft/client/render/model/BakedModel$GroupableModel;getEqualityGroup(Lnet/minecraft/block/BlockState;)Ljava/lang/Object;
      intermediary method_62332 Lnet/minecraft/class_1087$class_9979;method_62332(Lnet/minecraft/class_2680;)Ljava/lang/Object;
      official a Lgry$a;a(Leao;)Ljava/lang/Object;
    • resolve

      public void resolve(ResolvableModel.Resolver resolver)
      Specified by:
      resolve in interface ResolvableModel
      Mappings:
      Namespace Name Mixin selector
      named resolve Lnet/minecraft/client/render/model/ResolvableModel;resolve(Lnet/minecraft/client/render/model/ResolvableModel$Resolver;)V
      intermediary method_62326 Lnet/minecraft/class_10526;method_62326(Lnet/minecraft/class_10526$class_10103;)V
      official a Lhmb;a(Lhmb$a;)V
    • method_67930

      private static BakedModel method_67930(Baker baker, ModelVariant modelVariant)
      Mappings:
      Namespace Name Mixin selector
      named method_67930 Lnet/minecraft/client/render/model/json/WeightedUnbakedModel;method_67930(Lnet/minecraft/client/render/model/Baker;Lnet/minecraft/client/render/model/json/ModelVariant;)Lnet/minecraft/client/render/model/BakedModel;
      intermediary method_67930 Lnet/minecraft/class_807;method_67930(Lnet/minecraft/class_7775;Lnet/minecraft/class_813;)Lnet/minecraft/class_1087;
      official a Lgsd;a(Lhls;Lgsh;)Lgry;
    • bake

      public BakedModel bake(Baker baker)
      Specified by:
      bake in interface BakedModel.GroupableModel
      Mappings:
      Namespace Name Mixin selector
      named bake Lnet/minecraft/client/render/model/BakedModel$GroupableModel;bake(Lnet/minecraft/client/render/model/Baker;)Lnet/minecraft/client/render/model/BakedModel;
      intermediary method_65542 Lnet/minecraft/class_1087$class_9979;method_65542(Lnet/minecraft/class_7775;)Lnet/minecraft/class_1087;
      official a Lgry$a;a(Lhls;)Lgry;
    • method_67929

      public WeightedUnbakedModel method_67929(class_10804 class_10804)
      Mappings:
      Namespace Name Mixin selector
      named method_67929 Lnet/minecraft/client/render/model/json/WeightedUnbakedModel;method_67929(Lnet/minecraft/class_10804;)Lnet/minecraft/client/render/model/json/WeightedUnbakedModel;
      intermediary method_67929 Lnet/minecraft/class_807;method_67929(Lnet/minecraft/class_10804;)Lnet/minecraft/class_807;
      official a Lgsd;a(Lgsi;)Lgsd;
    • 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.
    • variants

      public List<ModelVariant> variants()
      Returns the value of the variants record component.
      Returns:
      the value of the variants record component