类 TextureAtlas
java.lang.Object
net.minecraft.client.renderer.texture.AbstractTexture
net.minecraft.client.renderer.texture.TextureAtlas
- 所有已实现的接口:
AutoCloseable
,Dumpable
,Tickable
-
字段概要
字段修饰符和类型字段说明private List
<TextureAtlasSprite.Ticker> private int
private final ResourceLocation
static final ResourceLocation
已过时。static final ResourceLocation
已过时。private static final org.slf4j.Logger
private final int
private int
private TextureAtlasSprite
private List
<SpriteContents> private Map
<ResourceLocation, TextureAtlasSprite> private int
从类继承的字段 net.minecraft.client.renderer.texture.AbstractTexture
defaultBlur, id, NOT_ASSIGNED
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
void
void
dumpContents
(ResourceLocation p_276106_, Path p_276127_) private static void
dumpSpriteNames
(Path p_261769_, String p_262102_, Map<ResourceLocation, TextureAtlasSprite> p_261722_) (专用程序包) int
getSprite
(ResourceLocation p_118317_) 返回 the set of sprites in this atlas。(专用程序包) int
getWidth()
location()
int
void
tick()
void
upload
(SpriteLoader.Preparations p_250662_) 从类继承的方法 net.minecraft.client.renderer.texture.AbstractTexture
bind, close, getId, releaseId, restoreLastBlurMipmap, setBlurMipmap, setClamp, setFilter, setFilter
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
LOCATION_BLOCKS
已过时。 -
LOCATION_PARTICLES
已过时。 -
sprites
-
animatedTextures
-
texturesByName
-
missingSprite
-
location
-
maxSupportedTextureSize
private final int maxSupportedTextureSize -
width
private int width -
height
private int height -
mipLevel
private int mipLevel
-
-
构造器详细资料
-
TextureAtlas
-
-
方法详细资料
-
upload
-
dumpContents
- 指定者:
dumpContents
在接口中Dumpable
- 抛出:
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() -
getTextureLocations
返回 the set of sprites in this atlas。- 返回:
- the set of sprites in this atlas
-