Class SpriteContents.AnimationState

java.lang.Object
net.minecraft.client.renderer.texture.SpriteContents.AnimationState
All Implemented Interfaces:
AutoCloseable
Enclosing class:
SpriteContents

public class SpriteContents.AnimationState extends Object implements AutoCloseable
  • Field Details

    • frame

      private int frame
    • subFrame

      private int subFrame
    • animationInfo

      private final SpriteContents.AnimatedTexture animationInfo
    • frameTexturesByIndex

      private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<GpuTextureView> frameTexturesByIndex
    • spriteUbosByMip

      private final GpuBufferSlice[] spriteUbosByMip
    • isDirty

      private boolean isDirty
  • Constructor Details

  • Method Details

    • tick

      public void tick()
    • getDrawUbo

      public GpuBufferSlice getDrawUbo(int pMipLevel)
    • needsToDraw

      public boolean needsToDraw()
    • drawToAtlas

      public void drawToAtlas(RenderPass pRenderPass, GpuBufferSlice pUbo)
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable