Class Stitcher
- java.lang.Object
-
- net.minecraft.client.renderer.texture.Stitcher
-
public class Stitcher extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classStitcher.Holderstatic interfaceStitcher.ISpriteLoaderstatic classStitcher.Slot
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Comparator<Stitcher.Holder>HOLDER_COMPARATORprivate static org.apache.logging.log4j.LoggerLOGGERprivate intmaxHeightprivate intmaxWidthprivate intmipLevelprivate java.util.List<Stitcher.Slot>storageprivate intstorageXprivate intstorageYprivate java.util.Set<Stitcher.Holder>texturesToBeStitched
-
Constructor Summary
Constructors Constructor Description Stitcher(int p_i50910_1_, int p_i50910_2_, int p_i50910_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private booleanaddToStorage(Stitcher.Holder p_94310_1_)private booleanexpand(Stitcher.Holder p_94311_1_)voidgatherSprites(Stitcher.ISpriteLoader p_229209_1_)intgetHeight()intgetWidth()voidregisterSprite(TextureAtlasSprite.Info p_229211_1_)private static intsmallestFittingMinTexel(int p_147969_0_, int p_147969_1_)voidstitch()
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
HOLDER_COMPARATOR
private static final java.util.Comparator<Stitcher.Holder> HOLDER_COMPARATOR
-
mipLevel
private final int mipLevel
-
texturesToBeStitched
private final java.util.Set<Stitcher.Holder> texturesToBeStitched
-
storage
private final java.util.List<Stitcher.Slot> storage
-
storageX
private int storageX
-
storageY
private int storageY
-
maxWidth
private final int maxWidth
-
maxHeight
private final int maxHeight
-
-
Method Detail
-
getWidth
public int getWidth()
-
getHeight
public int getHeight()
-
registerSprite
public void registerSprite(TextureAtlasSprite.Info p_229211_1_)
-
stitch
public void stitch()
-
gatherSprites
public void gatherSprites(Stitcher.ISpriteLoader p_229209_1_)
-
smallestFittingMinTexel
private static int smallestFittingMinTexel(int p_147969_0_, int p_147969_1_)
-
addToStorage
private boolean addToStorage(Stitcher.Holder p_94310_1_)
-
expand
private boolean expand(Stitcher.Holder p_94311_1_)
-
-