Class Stitcher<T extends Stitcher.Entry>

java.lang.Object
net.minecraft.client.renderer.texture.Stitcher<T>

public class Stitcher<T extends Stitcher.Entry> extends Object
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • HOLDER_COMPARATOR

      private static final Comparator<Stitcher.Holder<?>> HOLDER_COMPARATOR
    • mipLevel

      private final int mipLevel
    • texturesToBeStitched

      private final List<Stitcher.Holder<T extends Stitcher.Entry>> texturesToBeStitched
    • storage

      private final List<Stitcher.Region<T extends Stitcher.Entry>> storage
    • storageX

      private int storageX
    • storageY

      private int storageY
    • maxWidth

      private final int maxWidth
    • maxHeight

      private final int maxHeight
  • Constructor Details

    • Stitcher

      public Stitcher(int p_118171_, int p_118172_, int p_118173_)
  • Method Details

    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()
    • registerSprite

      public void registerSprite(T p_249253_)
    • stitch

      public void stitch()
    • gatherSprites

      public void gatherSprites(Stitcher.SpriteLoader<T> p_118181_)
    • smallestFittingMinTexel

      static int smallestFittingMinTexel(int p_118189_, int p_118190_)
    • addToStorage

      private boolean addToStorage(Stitcher.Holder<T> p_118179_)
    • expand

      private boolean expand(Stitcher.Holder<T> p_118192_)