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 expectedSize)
    • newLayer

    • clear

      public void clear()
    • setAnimated

      public void setAnimated()
    • isAnimated

      public boolean isAnimated()
    • appendModelIdentityElement

      public void appendModelIdentityElement(Object modelIdentityElement)
    • firstLayer

    • isEmpty

      public boolean isEmpty()
    • usesBlockLight

      public boolean usesBlockLight()
    • pickParticleIcon

      @Nullable public TextureAtlasSprite pickParticleIcon(RandomSource random)
    • visitExtents

      public void visitExtents(Consumer<Vector3fc> visitor)
    • render

      public void render(PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, int packedOverlay)
    • getModelBoundingBox

      public AABB getModelBoundingBox()
    • setOversizedInGui

      public void setOversizedInGui(boolean oversizedInGui)
    • isOversizedInGui

      public boolean isOversizedInGui()