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

      private @Nullable AABB cachedModelBoundingBox
    • layers

  • Constructor Details

    • ItemStackRenderState

      public ItemStackRenderState()
  • Method Details

    • ensureCapacity

      public void ensureCapacity(int requestedCount)
    • newLayer

    • clear

      public void clear()
    • setAnimated

      public void setAnimated()
    • isAnimated

      public boolean isAnimated()
    • appendModelIdentityElement

      public void appendModelIdentityElement(Object element)
    • firstLayer

    • isEmpty

      public boolean isEmpty()
    • usesBlockLight

      public boolean usesBlockLight()
    • pickParticleMaterial

      public @Nullable Material.Baked pickParticleMaterial(RandomSource randomSource)
    • visitExtents

      public void visitExtents(Consumer<Vector3fc> output)
    • submit

      public void submit(PoseStack poseStack, SubmitNodeCollector submitNodeCollector, int lightCoords, int overlayCoords, int outlineColor)
    • getModelBoundingBox

      public AABB getModelBoundingBox()
    • setOversizedInGui

      public void setOversizedInGui(boolean oversizedInGui)
    • isOversizedInGui

      public boolean isOversizedInGui()