Class BuiltinBakedModel

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

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

    • transformation

      private final ModelTransformation transformation
      Mappings:
      Namespace Name Mixin selector
      official a Lfbf;a:Leqr;
      intermediary field_5404 Lnet/minecraft/class_1090;field_5404:Lnet/minecraft/class_809;
      named transformation Lnet/minecraft/client/render/model/BuiltinBakedModel;transformation:Lnet/minecraft/client/render/model/json/ModelTransformation;
    • itemPropertyOverrides

      private final ModelOverrideList itemPropertyOverrides
      Mappings:
      Namespace Name Mixin selector
      official b Lfbf;b:Leqp;
      intermediary field_5405 Lnet/minecraft/class_1090;field_5405:Lnet/minecraft/class_806;
      named itemPropertyOverrides Lnet/minecraft/client/render/model/BuiltinBakedModel;itemPropertyOverrides:Lnet/minecraft/client/render/model/json/ModelOverrideList;
    • sprite

      private final Sprite sprite
      Mappings:
      Namespace Name Mixin selector
      official c Lfbf;c:Lezr;
      intermediary field_16594 Lnet/minecraft/class_1090;field_16594:Lnet/minecraft/class_1058;
      named sprite Lnet/minecraft/client/render/model/BuiltinBakedModel;sprite:Lnet/minecraft/client/texture/Sprite;
    • sideLit

      private final boolean sideLit
      Mappings:
      Namespace Name Mixin selector
      official d Lfbf;d:Z
      intermediary field_21862 Lnet/minecraft/class_1090;field_21862:Z
      named sideLit Lnet/minecraft/client/render/model/BuiltinBakedModel;sideLit:Z
  • Constructor Details

    • BuiltinBakedModel

      public BuiltinBakedModel(ModelTransformation transformation, ModelOverrideList itemPropertyOverrides, Sprite sprite, boolean sideLit)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfbf;<init>(Leqr;Leqp;Lezr;Z)V
      intermediary <init> Lnet/minecraft/class_1090;<init>(Lnet/minecraft/class_809;Lnet/minecraft/class_806;Lnet/minecraft/class_1058;Z)V
      named <init> Lnet/minecraft/client/render/model/BuiltinBakedModel;<init>(Lnet/minecraft/client/render/model/json/ModelTransformation;Lnet/minecraft/client/render/model/json/ModelOverrideList;Lnet/minecraft/client/texture/Sprite;Z)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
      official a Lfbd;a(Lcoc;Lgm;Ljava/util/Random;)Ljava/util/List;
      intermediary method_4707 Lnet/minecraft/class_1087;method_4707(Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;Ljava/util/Random;)Ljava/util/List;
      named getQuads Lnet/minecraft/client/render/model/BakedModel;getQuads(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;Ljava/util/Random;)Ljava/util/List;
    • useAmbientOcclusion

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

      public boolean hasDepth()
      Specified by:
      hasDepth in interface BakedModel
      Mappings:
      Namespace Name Mixin selector
      official b Lfbd;b()Z
      intermediary method_4712 Lnet/minecraft/class_1087;method_4712()Z
      named hasDepth Lnet/minecraft/client/render/model/BakedModel;hasDepth()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
      official c Lfbd;c()Z
      intermediary method_24304 Lnet/minecraft/class_1087;method_24304()Z
      named isSideLit Lnet/minecraft/client/render/model/BakedModel;isSideLit()Z
    • isBuiltin

      public boolean isBuiltin()
      Specified by:
      isBuiltin in interface BakedModel
      Mappings:
      Namespace Name Mixin selector
      official d Lfbd;d()Z
      intermediary method_4713 Lnet/minecraft/class_1087;method_4713()Z
      named isBuiltin Lnet/minecraft/client/render/model/BakedModel;isBuiltin()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
      official e Lfbd;e()Lezr;
      intermediary method_4711 Lnet/minecraft/class_1087;method_4711()Lnet/minecraft/class_1058;
      named getParticleSprite Lnet/minecraft/client/render/model/BakedModel;getParticleSprite()Lnet/minecraft/client/texture/Sprite;
    • getTransformation

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

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