public class DrawableSprite
extends java.lang.Object
implements mezz.jei.api.gui.drawable.IDrawableStatic
| Constructor and Description |
|---|
DrawableSprite(JeiSpriteUploader spriteUploader,
net.minecraft.util.ResourceLocation location,
int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(int xOffset,
int yOffset) |
void |
draw(int xOffset,
int yOffset,
int maskTop,
int maskBottom,
int maskLeft,
int maskRight) |
int |
getHeight() |
int |
getWidth() |
DrawableSprite |
trim(int left,
int right,
int top,
int bottom) |
public DrawableSprite(JeiSpriteUploader spriteUploader, net.minecraft.util.ResourceLocation location, int width, int height)
public DrawableSprite trim(int left, int right, int top, int bottom)
public int getWidth()
getWidth in interface mezz.jei.api.gui.drawable.IDrawablepublic int getHeight()
getHeight in interface mezz.jei.api.gui.drawable.IDrawablepublic void draw(int xOffset,
int yOffset)
draw in interface mezz.jei.api.gui.drawable.IDrawablepublic void draw(int xOffset,
int yOffset,
int maskTop,
int maskBottom,
int maskLeft,
int maskRight)
draw in interface mezz.jei.api.gui.drawable.IDrawableStatic