Class WeightedBakedModel

java.lang.Object
net.minecraft.client.render.model.WeightedBakedModel
All Implemented Interfaces:
BakedModel

@Environment(CLIENT) public class WeightedBakedModel extends Object implements BakedModel
Mappings:
Namespace Name
named net/minecraft/client/render/model/WeightedBakedModel
intermediary net/minecraft/class_1097
official gro
  • Field Details

    • totalWeight

      private final int totalWeight
      Mappings:
      Namespace Name Mixin selector
      named totalWeight Lnet/minecraft/client/render/model/WeightedBakedModel;totalWeight:I
      intermediary field_5433 Lnet/minecraft/class_1097;field_5433:I
      official a Lgro;a:I
    • models

      private final List<Weighted.Present<BakedModel>> models
      Mappings:
      Namespace Name Mixin selector
      named models Lnet/minecraft/client/render/model/WeightedBakedModel;models:Ljava/util/List;
      intermediary field_5434 Lnet/minecraft/class_1097;field_5434:Ljava/util/List;
      official b Lgro;b:Ljava/util/List;
    • defaultModel

      private final BakedModel defaultModel
      Mappings:
      Namespace Name Mixin selector
      named defaultModel Lnet/minecraft/client/render/model/WeightedBakedModel;defaultModel:Lnet/minecraft/client/render/model/BakedModel;
      intermediary field_5435 Lnet/minecraft/class_1097;field_5435:Lnet/minecraft/class_1087;
      official c Lgro;c:Lgrc;
  • Constructor Details

    • WeightedBakedModel

      public WeightedBakedModel(List<Weighted.Present<BakedModel>> models)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/render/model/WeightedBakedModel;<init>(Ljava/util/List;)V
      intermediary <init> Lnet/minecraft/class_1097;<init>(Ljava/util/List;)V
      official <init> Lgro;<init>(Ljava/util/List;)V
  • Method Details

    • getQuads

      public List<BakedQuad> getQuads(@Nullable @Nullable BlockState state, @Nullable @Nullable Direction face, Random random)
      Specified by:
      getQuads in interface BakedModel
      Mappings:
      Namespace Name Mixin selector
      named getQuads Lnet/minecraft/client/render/model/BakedModel;getQuads(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/random/Random;)Ljava/util/List;
      intermediary method_4707 Lnet/minecraft/class_1087;method_4707(Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;Lnet/minecraft/class_5819;)Ljava/util/List;
      official a Lgrc;a(Ldse;Lje;Lazh;)Ljava/util/List;
    • useAmbientOcclusion

      public boolean useAmbientOcclusion()
      Specified by:
      useAmbientOcclusion in interface BakedModel
      Mappings:
      Namespace Name Mixin selector
      named useAmbientOcclusion Lnet/minecraft/client/render/model/BakedModel;useAmbientOcclusion()Z
      intermediary method_4708 Lnet/minecraft/class_1087;method_4708()Z
      official a Lgrc;a()Z
    • hasDepth

      public boolean hasDepth()
      Specified by:
      hasDepth in interface BakedModel
      Mappings:
      Namespace Name Mixin selector
      named hasDepth Lnet/minecraft/client/render/model/BakedModel;hasDepth()Z
      intermediary method_4712 Lnet/minecraft/class_1087;method_4712()Z
      official b Lgrc;b()Z
    • isSideLit

      public boolean isSideLit()
      Allows control of the lighting when rendering a model in a GUI.

      True, the model will be lit from the side, like a block.

      False, the model will be lit from the front, like an item.

      Specified by:
      isSideLit in interface BakedModel
      Mappings:
      Namespace Name Mixin selector
      named isSideLit Lnet/minecraft/client/render/model/BakedModel;isSideLit()Z
      intermediary method_24304 Lnet/minecraft/class_1087;method_24304()Z
      official c Lgrc;c()Z
    • isBuiltin

      public boolean isBuiltin()
      Specified by:
      isBuiltin in interface BakedModel
      Mappings:
      Namespace Name Mixin selector
      named isBuiltin Lnet/minecraft/client/render/model/BakedModel;isBuiltin()Z
      intermediary method_4713 Lnet/minecraft/class_1087;method_4713()Z
      official d Lgrc;d()Z
    • getParticleSprite

      public Sprite getParticleSprite()
      Returns a texture that represents the model.

      This is primarily used in particles. For example, block break particles use this sprite.

      Specified by:
      getParticleSprite in interface BakedModel
      Returns:
      a texture that represents the model
      Mappings:
      Namespace Name Mixin selector
      named getParticleSprite Lnet/minecraft/client/render/model/BakedModel;getParticleSprite()Lnet/minecraft/client/texture/Sprite;
      intermediary method_4711 Lnet/minecraft/class_1087;method_4711()Lnet/minecraft/class_1058;
      official e Lgrc;e()Lgpb;
    • getTransformation

      public ModelTransformation getTransformation()
      Specified by:
      getTransformation in interface BakedModel
      Mappings:
      Namespace Name Mixin selector
      named getTransformation Lnet/minecraft/client/render/model/BakedModel;getTransformation()Lnet/minecraft/client/render/model/json/ModelTransformation;
      intermediary method_4709 Lnet/minecraft/class_1087;method_4709()Lnet/minecraft/class_809;
      official f Lgrc;f()Lgez;
    • getOverrides

      public ModelOverrideList getOverrides()
      Specified by:
      getOverrides in interface BakedModel
      Mappings:
      Namespace Name Mixin selector
      named getOverrides Lnet/minecraft/client/render/model/BakedModel;getOverrides()Lnet/minecraft/client/render/model/json/ModelOverrideList;
      intermediary method_4710 Lnet/minecraft/class_1087;method_4710()Lnet/minecraft/class_806;
      official g Lgrc;g()Lgex;