Class TextureStitcher

java.lang.Object
net.minecraft.client.texture.TextureStitcher

@Environment(CLIENT)
public class TextureStitcher
extends Object
  • Field Details

  • Constructor Details

    • TextureStitcher

      public TextureStitcher​(int maxWidth, int maxHeight, int mipLevel)
  • Method Details

    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()
    • add

      public void add​(Sprite.Info info)
    • stitch

      public void stitch()
    • getStitchedSprites

      public void getStitchedSprites​(TextureStitcher.SpriteConsumer spriteConsumer)
    • applyMipLevel

      private static int applyMipLevel​(int size, int mipLevel)
    • fit

      private boolean fit​(TextureStitcher.Holder holder)
    • growAndFit

      private boolean growAndFit​(TextureStitcher.Holder holder)