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 resourceLocation, Path path) private static void
dumpSpriteNames
(Path outputDir, String outputFilename, Map<ResourceLocation, TextureAtlasSprite> sprites) (package private) int
getSprite
(ResourceLocation name) (package private) int
getWidth()
void
load
(ResourceManager resourceManager) location()
int
void
tick()
void
updateFilter
(SpriteLoader.Preparations preparations) void
upload
(SpriteLoader.Preparations preparations) 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 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() -
updateFilter
-
getTextures
-