Class TextureAtlas
java.lang.Object
net.minecraft.client.renderer.texture.AbstractTexture
net.minecraft.client.renderer.texture.TextureAtlas
- All Implemented Interfaces:
AutoCloseable,Dumpable,Tickable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<TextureAtlasSprite.Ticker> private intprivate final ResourceLocationstatic final ResourceLocationDeprecated.static final ResourceLocationDeprecated.private static final org.slf4j.Loggerprivate final intprivate intprivate TextureAtlasSpriteprivate List<SpriteContents> private Map<ResourceLocation, TextureAtlasSprite> private intFields inherited from class net.minecraft.client.renderer.texture.AbstractTexture
texture, textureView -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate voidcreateTexture(int pWidth, int pHeight, int pMipLevel) voidvoiddumpContents(ResourceLocation p_276106_, Path p_276127_) private static voiddumpSpriteNames(Path pOutputDir, String pOutputFilename, Map<ResourceLocation, TextureAtlasSprite> pSprites) (package private) intgetSprite(ResourceLocation pName) (package private) intgetWidth()location()intvoidtick()voidupload(SpriteLoader.Preparations pPreparations) Methods inherited from class net.minecraft.client.renderer.texture.AbstractTexture
close, getTexture, getTextureView, setClamp, setFilter, setUseMipmaps
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
LOCATION_BLOCKS
Deprecated. -
LOCATION_PARTICLES
Deprecated. -
sprites
-
animatedTextures
-
texturesByName
-
missingSprite
-
location
-
maxSupportedTextureSize
private final int maxSupportedTextureSize -
width
private int width -
height
private int height -
mipLevel
private int mipLevel
-
-
Constructor Details
-
TextureAtlas
-
-
Method Details
-
createTexture
private void createTexture(int pWidth, int pHeight, int pMipLevel) -
upload
-
dumpContents
- Specified by:
dumpContentsin interfaceDumpable- Throws:
IOException
-
dumpSpriteNames
private static void dumpSpriteNames(Path pOutputDir, String pOutputFilename, Map<ResourceLocation, TextureAtlasSprite> pSprites) -
cycleAnimationFrames
public void cycleAnimationFrames() -
tick
public void tick() -
getSprite
-
missingSprite
-
clearTextureData
public void clearTextureData() -
location
-
maxSupportedTextureSize
public int maxSupportedTextureSize() -
getWidth
int getWidth() -
getHeight
int getHeight() -
getTextures
-