Class ItemStackRenderState

java.lang.Object
net.minecraft.client.renderer.item.ItemStackRenderState
Direct Known Subclasses:
TrackingItemStackRenderState

public class ItemStackRenderState extends Object
  • Field Details

    • displayContext

      ItemDisplayContext displayContext
    • activeLayerCount

      private int activeLayerCount
    • animated

      private boolean animated
    • oversizedInGui

      private boolean oversizedInGui
    • cachedModelBoundingBox

      @Nullable private AABB cachedModelBoundingBox
    • layers

  • Constructor Details

    • ItemStackRenderState

      public ItemStackRenderState()
  • Method Details

    • ensureCapacity

      public void ensureCapacity(int pExpectedSize)
    • newLayer

    • clear

      public void clear()
    • setAnimated

      public void setAnimated()
    • isAnimated

      public boolean isAnimated()
    • appendModelIdentityElement

      public void appendModelIdentityElement(Object pModelIdentityElement)
    • firstLayer

    • isEmpty

      public boolean isEmpty()
    • usesBlockLight

      public boolean usesBlockLight()
    • pickParticleIcon

      @Nullable public TextureAtlasSprite pickParticleIcon(RandomSource pRandom)
    • visitExtents

      public void visitExtents(Consumer<org.joml.Vector3fc> pVisitor)
    • render

      public void render(PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay)
    • getModelBoundingBox

      public AABB getModelBoundingBox()
    • setOversizedInGui

      public void setOversizedInGui(boolean pOversizedInGui)
    • isOversizedInGui

      public boolean isOversizedInGui()