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
named net/minecraft/client/render/model/json/WeightedUnbakedModel
intermediary net/minecraft/class_807
official gfa
  • Field Details

    • variants

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

    • WeightedUnbakedModel

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

    • getVariants

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      named equals Lnet/minecraft/client/render/model/json/WeightedUnbakedModel;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_807;equals(Ljava/lang/Object;)Z
      official equals Lgfa;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
      named getModelDependencies Lnet/minecraft/client/render/model/UnbakedModel;getModelDependencies()Ljava/util/Collection;
      intermediary method_4755 Lnet/minecraft/class_1100;method_4755()Ljava/util/Collection;
      official f Lgrn;f()Ljava/util/Collection;
    • setParents

      public void setParents(Function<Identifier,UnbakedModel> modelLoader)
      Specified by:
      setParents in interface UnbakedModel
      Mappings:
      Namespace Name Mixin selector
      named setParents Lnet/minecraft/client/render/model/UnbakedModel;setParents(Ljava/util/function/Function;)V
      intermediary method_45785 Lnet/minecraft/class_1100;method_45785(Ljava/util/function/Function;)V
      official a Lgrn;a(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
      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;
      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;
      official a Lgrn;a(Lgrg;Ljava/util/function/Function;Lgrk;Lalf;)Lgrc;