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 width, int height, int mipLevel) voidvoiddumpContents(ResourceLocation resourceLocation, Path path) private static voiddumpSpriteNames(Path outputDir, String outputFilename, Map<ResourceLocation, TextureAtlasSprite> sprites) (package private) intgetSprite(ResourceLocation name) (package private) intgetWidth()location()intvoidtick()voidupload(SpriteLoader.Preparations preparations) 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 width, int height, int mipLevel) -
upload
-
dumpContents
- Specified by:
dumpContentsin interfaceDumpable- Throws:
IOException
-
dumpSpriteNames
private static void dumpSpriteNames(Path outputDir, String outputFilename, Map<ResourceLocation, TextureAtlasSprite> sprites) -
cycleAnimationFrames
public void cycleAnimationFrames() -
tick
public void tick() -
getSprite
-
clearTextureData
public void clearTextureData() -
location
-
maxSupportedTextureSize
public int maxSupportedTextureSize() -
getWidth
int getWidth() -
getHeight
int getHeight() -
getTextures
-