Record Class WeightedUnbakedModel

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

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

  • Constructor Details

  • Method Details

    • getEqualityGroup

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

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

      public BakedModel bake(Baker baker, Function<SpriteIdentifier,Sprite> textureGetter, ModelBakeSettings rotationContainer)
      Specified by:
      bake in interface UnbakedModel
      Mappings:
      Namespace Name Mixin selector
      named bake Lnet/minecraft/client/render/model/UnbakedModel;bake(Lnet/minecraft/client/render/model/Baker;Ljava/util/function/Function;Lnet/minecraft/client/render/model/ModelBakeSettings;)Lnet/minecraft/client/render/model/BakedModel;
      intermediary method_4753 Lnet/minecraft/class_1100;method_4753(Lnet/minecraft/class_7775;Ljava/util/function/Function;Lnet/minecraft/class_3665;)Lnet/minecraft/class_1087;
      official a Lhef;a(Lhdv;Ljava/util/function/Function;Lheb;)Lhdm;
    • 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