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
Modifier and TypeFieldDescriptionprivate List
<TextureAtlasSprite.Ticker> private int
private final ResourceLocation
static final ResourceLocation
Deprecated.static final ResourceLocation
Deprecated.private static final org.slf4j.Logger
private final int
private int
private TextureAtlasSprite
private List
<SpriteContents> private Map
<ResourceLocation, TextureAtlasSprite> private int
Fields inherited from class net.minecraft.client.renderer.texture.AbstractTexture
blur, id, mipmap, NOT_ASSIGNED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
dumpContents
(ResourceLocation p_276106_, Path p_276127_) private static void
dumpSpriteNames
(Path p_261769_, String p_262102_, Map<ResourceLocation, TextureAtlasSprite> p_261722_) (package private) int
getSprite
(ResourceLocation p_118317_) (package private) int
getWidth()
void
load
(ResourceManager p_118282_) location()
int
void
tick()
void
updateFilter
(SpriteLoader.Preparations p_251993_) void
upload
(SpriteLoader.Preparations p_250662_) Methods inherited from class net.minecraft.client.renderer.texture.AbstractTexture
bind, close, getId, releaseId, reset, restoreLastBlurMipmap, setBlurMipmap, setFilter
-
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
-
load
- Specified by:
load
in classAbstractTexture
-
upload
-
dumpContents
- Specified by:
dumpContents
in interfaceDumpable
- Throws:
IOException
-
dumpSpriteNames
private static void dumpSpriteNames(Path p_261769_, String p_262102_, Map<ResourceLocation, TextureAtlasSprite> p_261722_) -
cycleAnimationFrames
public void cycleAnimationFrames() -
tick
public void tick() -
getSprite
-
clearTextureData
public void clearTextureData() -
location
-
maxSupportedTextureSize
public int maxSupportedTextureSize() -
getWidth
int getWidth() -
getHeight
int getHeight() -
updateFilter
-
getTextures
-