Class WeightedUnbakedModel

java.lang.Object
net.minecraft.client.render.model.json.WeightedUnbakedModel
All Implemented Interfaces:
UnbakedModel

@Environment(CLIENT) public class WeightedUnbakedModel extends Object implements UnbakedModel
Mappings:
Namespace Name
official ffc
intermediary net/minecraft/class_807
named net/minecraft/client/render/model/json/WeightedUnbakedModel
  • Field Details

    • variants

      private final List<ModelVariant> variants
      Mappings:
      Namespace Name Mixin selector
      official a Lffc;a:Ljava/util/List;
      intermediary field_4294 Lnet/minecraft/class_807;field_4294:Ljava/util/List;
      named variants Lnet/minecraft/client/render/model/json/WeightedUnbakedModel;variants:Ljava/util/List;
  • Constructor Details

    • WeightedUnbakedModel

      public WeightedUnbakedModel(List<ModelVariant> variants)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lffc;<init>(Ljava/util/List;)V
      intermediary <init> Lnet/minecraft/class_807;<init>(Ljava/util/List;)V
      named <init> Lnet/minecraft/client/render/model/json/WeightedUnbakedModel;<init>(Ljava/util/List;)V
  • Method Details

    • getVariants

      public List<ModelVariant> getVariants()
      Mappings:
      Namespace Name Mixin selector
      official a Lffc;a()Ljava/util/List;
      intermediary method_3497 Lnet/minecraft/class_807;method_3497()Ljava/util/List;
      named getVariants Lnet/minecraft/client/render/model/json/WeightedUnbakedModel;getVariants()Ljava/util/List;
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Lffc;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_807;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/client/render/model/json/WeightedUnbakedModel;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getModelDependencies

      public Collection<Identifier> getModelDependencies()
      Specified by:
      getModelDependencies in interface UnbakedModel
      Mappings:
      Namespace Name Mixin selector
      official f Lfqs;f()Ljava/util/Collection;
      intermediary method_4755 Lnet/minecraft/class_1100;method_4755()Ljava/util/Collection;
      named getModelDependencies Lnet/minecraft/client/render/model/UnbakedModel;getModelDependencies()Ljava/util/Collection;
    • setParents

      public void setParents(Function<Identifier,UnbakedModel> modelLoader)
      Specified by:
      setParents in interface UnbakedModel
      Mappings:
      Namespace Name Mixin selector
      official a Lfqs;a(Ljava/util/function/Function;)V
      intermediary method_45785 Lnet/minecraft/class_1100;method_45785(Ljava/util/function/Function;)V
      named setParents Lnet/minecraft/client/render/model/UnbakedModel;setParents(Ljava/util/function/Function;)V
    • bake

      @Nullable public @Nullable BakedModel bake(Baker baker, Function<SpriteIdentifier,Sprite> textureGetter, ModelBakeSettings rotationContainer, Identifier modelId)
      Specified by:
      bake in interface UnbakedModel
      Mappings:
      Namespace Name Mixin selector
      official a Lfqs;a(Lfql;Ljava/util/function/Function;Lfqp;Lacf;)Lfqh;
      intermediary method_4753 Lnet/minecraft/class_1100;method_4753(Lnet/minecraft/class_7775;Ljava/util/function/Function;Lnet/minecraft/class_3665;Lnet/minecraft/class_2960;)Lnet/minecraft/class_1087;
      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/util/Identifier;)Lnet/minecraft/client/render/model/BakedModel;