public class DrawableSprite
extends java.lang.Object
implements mezz.jei.api.gui.drawable.IDrawableStatic
Constructor and Description |
---|
DrawableSprite(JeiTextureMap textureMap,
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(JeiTextureMap textureMap, 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.IDrawable
public int getHeight()
getHeight
in interface mezz.jei.api.gui.drawable.IDrawable
public void draw(int xOffset, int yOffset)
draw
in interface mezz.jei.api.gui.drawable.IDrawable
public void draw(int xOffset, int yOffset, int maskTop, int maskBottom, int maskLeft, int maskRight)
draw
in interface mezz.jei.api.gui.drawable.IDrawableStatic