Record Class WeightedUnbakedModel

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

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

  • Constructor Details

    • WeightedUnbakedModel

      public WeightedUnbakedModel(List<ModelVariant> variants)
      Creates an instance of a WeightedUnbakedModel record class.
      Parameters:
      variants - the value for the variants record component
  • Method Details

    • method_62332

      public Object method_62332(BlockState blockState)
      Specified by:
      method_62332 in interface class_9979
      Mappings:
      Namespace Name Mixin selector
      named method_62332 Lnet/minecraft/class_9979;method_62332(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 Lgil;a(Ldua;)Ljava/lang/Object;
    • method_62326

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

      @Nullable public @Nullable 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 Lgzc;a(Lgys;Ljava/util/function/Function;Lgyy;)Lgym;
    • 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