public class SpritePreparationContextImpl extends java.lang.Object implements SpritePreparationContext
| Constructor and Description |
|---|
SpritePreparationContextImpl(int originalWidth,
int originalHeight,
int textureWidth,
int textureHeight,
net.minecraft.util.ResourceLocation identifier) |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.util.ResourceLocation |
getIdentifier()
Gets the identifier of the texture.
|
int |
getOriginalFrameHeight()
Gets the original frame height as calculated by vanilla.
|
int |
getOriginalFrameWith()
Gets the original frame width as calculated by vanilla.
|
int |
getTextureHeight()
Gets the height of the texture.
|
int |
getTextureWidth()
Gets the width of the texture.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOriginalFrameSizepublic SpritePreparationContextImpl(int originalWidth,
int originalHeight,
int textureWidth,
int textureHeight,
net.minecraft.util.ResourceLocation identifier)
public int getOriginalFrameWith()
SpritePreparationContextgetOriginalFrameWith in interface SpritePreparationContextpublic int getOriginalFrameHeight()
SpritePreparationContextgetOriginalFrameHeight in interface SpritePreparationContextpublic int getTextureWidth()
SpritePreparationContextgetTextureWidth in interface SpritePreparationContextpublic int getTextureHeight()
SpritePreparationContextgetTextureHeight in interface SpritePreparationContextpublic net.minecraft.util.ResourceLocation getIdentifier()
SpritePreparationContextgetIdentifier in interface SpritePreparationContext