Modifier and Type | Class and Description |
---|---|
static class |
AtlasTexture.SheetData |
Modifier and Type | Field and Description |
---|---|
private java.util.List<TextureAtlasSprite> |
listAnimatedSprites |
static ResourceLocation |
LOCATION_BLOCKS_TEXTURE
Deprecated.
|
static ResourceLocation |
LOCATION_PARTICLES_TEXTURE
Deprecated.
|
private static org.apache.logging.log4j.Logger |
LOGGER |
private java.util.Map<ResourceLocation,TextureAtlasSprite> |
mapUploadedSprites |
private int |
maximumTextureSize |
private java.util.Set<ResourceLocation> |
sprites |
private ResourceLocation |
textureLocation |
blur, glTextureId, mipmap
Constructor and Description |
---|
AtlasTexture(ResourceLocation textureLocationIn) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
TextureAtlasSprite |
getSprite(ResourceLocation location) |
private ResourceLocation |
getSpritePath(ResourceLocation location) |
private java.util.List<TextureAtlasSprite> |
getStitchedSprites(IResourceManager resourceManagerIn,
Stitcher stitcherIn,
int mipmapLevelIn) |
ResourceLocation |
getTextureLocation() |
private TextureAtlasSprite |
loadSprite(IResourceManager resourceManagerIn,
TextureAtlasSprite.Info spriteInfoIn,
int widthIn,
int heightIn,
int mipmapLevelIn,
int originX,
int originY) |
void |
loadTexture(IResourceManager manager) |
private java.util.Collection<TextureAtlasSprite.Info> |
makeSprites(IResourceManager resourceManagerIn,
java.util.Set<ResourceLocation> spriteLocationsIn) |
void |
setBlurMipmap(AtlasTexture.SheetData sheetDataIn) |
AtlasTexture.SheetData |
stitch(IResourceManager resourceManagerIn,
java.util.stream.Stream<ResourceLocation> resourceLocationsIn,
IProfiler profilerIn,
int maxMipmapLevelIn) |
void |
tick() |
void |
updateAnimations() |
void |
upload(AtlasTexture.SheetData sheetDataIn) |
bindTexture, deleteGlTexture, getGlTextureId, loadTexture, restoreLastBlurMipmap, setBlurMipmap, setBlurMipmapDirect
private static final org.apache.logging.log4j.Logger LOGGER
@Deprecated public static final ResourceLocation LOCATION_BLOCKS_TEXTURE
@Deprecated public static final ResourceLocation LOCATION_PARTICLES_TEXTURE
private final java.util.List<TextureAtlasSprite> listAnimatedSprites
private final java.util.Set<ResourceLocation> sprites
private final java.util.Map<ResourceLocation,TextureAtlasSprite> mapUploadedSprites
private final ResourceLocation textureLocation
private final int maximumTextureSize
public AtlasTexture(ResourceLocation textureLocationIn)
public void loadTexture(IResourceManager manager) throws java.io.IOException
loadTexture
in class Texture
java.io.IOException
public void upload(AtlasTexture.SheetData sheetDataIn)
public AtlasTexture.SheetData stitch(IResourceManager resourceManagerIn, java.util.stream.Stream<ResourceLocation> resourceLocationsIn, IProfiler profilerIn, int maxMipmapLevelIn)
private java.util.Collection<TextureAtlasSprite.Info> makeSprites(IResourceManager resourceManagerIn, java.util.Set<ResourceLocation> spriteLocationsIn)
private java.util.List<TextureAtlasSprite> getStitchedSprites(IResourceManager resourceManagerIn, Stitcher stitcherIn, int mipmapLevelIn)
@Nullable private TextureAtlasSprite loadSprite(IResourceManager resourceManagerIn, TextureAtlasSprite.Info spriteInfoIn, int widthIn, int heightIn, int mipmapLevelIn, int originX, int originY)
private ResourceLocation getSpritePath(ResourceLocation location)
public void updateAnimations()
public TextureAtlasSprite getSprite(ResourceLocation location)
public void clear()
public ResourceLocation getTextureLocation()
public void setBlurMipmap(AtlasTexture.SheetData sheetDataIn)