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 eqf
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 Leqf;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> Leqf;<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 Leqf;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 Leqf;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 Lfay;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;
    • getTextureDependencies

      public Collection<SpriteIdentifier> getTextureDependencies(Function<Identifier,UnbakedModel> unbakedModelGetter, Set<com.mojang.datafixers.util.Pair<String,String>> unresolvedTextureReferences)
      Specified by:
      getTextureDependencies in interface UnbakedModel
      Mappings:
      Namespace Name Mixin selector
      official a Lfay;a(Ljava/util/function/Function;Ljava/util/Set;)Ljava/util/Collection;
      intermediary method_4754 Lnet/minecraft/class_1100;method_4754(Ljava/util/function/Function;Ljava/util/Set;)Ljava/util/Collection;
      named getTextureDependencies Lnet/minecraft/client/render/model/UnbakedModel;getTextureDependencies(Ljava/util/function/Function;Ljava/util/Set;)Ljava/util/Collection;
    • bake

      @Nullable public @Nullable BakedModel bake(ModelLoader loader, Function<SpriteIdentifier,Sprite> textureGetter, ModelBakeSettings rotationContainer, Identifier modelId)
      Specified by:
      bake in interface UnbakedModel
      Mappings:
      Namespace Name Mixin selector
      official a Lfay;a(Lfas;Ljava/util/function/Function;Lfav;Lyb;)Lfao;
      intermediary method_4753 Lnet/minecraft/class_1100;method_4753(Lnet/minecraft/class_1088;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/ModelLoader;Ljava/util/function/Function;Lnet/minecraft/client/render/model/ModelBakeSettings;Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/render/model/BakedModel;