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 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
dumpContents
(ResourceLocation pResourceLocation, Path pPath) private static void
dumpSpriteNames
(Path pOutputDir, String pOutputFilename, Map<ResourceLocation, TextureAtlasSprite> pSprites) (package private) int
getSprite
(ResourceLocation pName) (package private) int
getWidth()
void
load
(ResourceManager pResourceManager) location()
int
void
tick()
void
updateFilter
(SpriteLoader.Preparations pPreparations) void
upload
(SpriteLoader.Preparations pPreparations) 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 pOutputDir, String pOutputFilename, Map<ResourceLocation, TextureAtlasSprite> pSprites) -
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
-