public class SpriteCreationContextImpl extends java.lang.Object implements SpriteCreationContext, java.lang.AutoCloseable
| Constructor and Description |
|---|
SpriteCreationContextImpl(net.minecraft.client.renderer.texture.TextureAtlasSprite original,
net.minecraft.client.renderer.texture.TextureMap atlas) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
net.minecraft.client.renderer.texture.TextureAtlasSprite |
createOriginalSprite()
Creates the sprite as if it were created by vanilla.
|
net.minecraft.client.renderer.texture.TextureMap |
getAtlas()
Gets the atlas which the sprite is stitched to.
|
int |
getAtlasHeight()
Gets the height of the texture.
|
int |
getAtlasWidth()
Gets the width of the atlas.
|
int |
getMipmapLevels()
Gets the configured number of mipmap levels.
|
int |
getSpriteHeight()
Gets the height of the sprite as allocated on the atlas.
|
int |
getSpritePositionX()
Gets the x-position of the sprite on the atlas.
|
int |
getSpritePositionY()
Gets the y-position of the sprite on the atlas.
|
int |
getSpriteWidth()
Gets the width of the sprite as allocated on the atlas.
|
java.util.List<int[][]> |
getTextureBuffers()
Gets the texture data.
|
int |
getTextureHeight()
Gets the height of the texture.
|
net.minecraft.util.ResourceLocation |
getTextureIdentifier()
Gets the identifier of the texture.
|
int |
getTextureWidth()
Gets the width of the texture.
|
public SpriteCreationContextImpl(net.minecraft.client.renderer.texture.TextureAtlasSprite original,
net.minecraft.client.renderer.texture.TextureMap atlas)
public net.minecraft.client.renderer.texture.TextureAtlasSprite createOriginalSprite()
SpriteCreationContextcreateOriginalSprite in interface SpriteCreationContextpublic int getTextureWidth()
SpriteCreationContextgetTextureWidth in interface SpriteCreationContextpublic int getTextureHeight()
SpriteCreationContextgetTextureHeight in interface SpriteCreationContextpublic net.minecraft.util.ResourceLocation getTextureIdentifier()
SpriteCreationContextgetTextureIdentifier in interface SpriteCreationContextpublic java.util.List<int[][]> getTextureBuffers()
SpriteCreationContextgetTextureBuffers in interface SpriteCreationContextpublic int getAtlasWidth()
SpriteCreationContextgetAtlasWidth in interface SpriteCreationContextpublic int getAtlasHeight()
SpriteCreationContextgetAtlasHeight in interface SpriteCreationContextpublic net.minecraft.client.renderer.texture.TextureMap getAtlas()
SpriteCreationContextgetAtlas in interface SpriteCreationContextpublic int getSpritePositionX()
SpriteCreationContextgetSpritePositionX in interface SpriteCreationContextpublic int getSpritePositionY()
SpriteCreationContextgetSpritePositionY in interface SpriteCreationContextpublic int getSpriteWidth()
SpriteCreationContextgetSpriteWidth in interface SpriteCreationContextpublic int getSpriteHeight()
SpriteCreationContextgetSpriteHeight in interface SpriteCreationContextpublic int getMipmapLevels()
SpriteCreationContextgetMipmapLevels in interface SpriteCreationContextpublic void close()
close in interface java.lang.AutoCloseable