public interface IGuiHelper
IJeiHelpers.getGuiHelper()
.Modifier and Type | Method and Description |
---|---|
IDrawableAnimated |
createAnimatedDrawable(IDrawableStatic drawable,
int ticksPerCycle,
IDrawableAnimated.StartDirection startDirection,
boolean inverted)
Creates an animated texture for a gui, revealing the texture over time.
|
IDrawableStatic |
createBlankDrawable(int width,
int height)
Returns a blank drawable for using as a blank recipe background.
|
ICraftingGridHelper |
createCraftingGridHelper(int craftInputSlot1,
int craftOutputSlot)
Create a crafting grid helper.
|
IDrawableStatic |
createDrawable(net.minecraft.util.ResourceLocation resourceLocation,
int u,
int v,
int width,
int height) |
IDrawableStatic |
createDrawable(net.minecraft.util.ResourceLocation resourceLocation,
int u,
int v,
int width,
int height,
int paddingTop,
int paddingBottom,
int paddingLeft,
int paddingRight) |
ITickTimer |
createTickTimer(int ticksPerCycle,
int maxValue,
boolean countDown)
Create a timer to help with rendering things that normally depend on ticks.
|
IDrawableStatic |
getSlotDrawable()
Returns a slot drawable for drawing extra slots on guis
|
IDrawableStatic createDrawable(net.minecraft.util.ResourceLocation resourceLocation, int u, int v, int width, int height)
IDrawableStatic createDrawable(net.minecraft.util.ResourceLocation resourceLocation, int u, int v, int width, int height, int paddingTop, int paddingBottom, int paddingLeft, int paddingRight)
IDrawableAnimated createAnimatedDrawable(IDrawableStatic drawable, int ticksPerCycle, IDrawableAnimated.StartDirection startDirection, boolean inverted)
drawable
- the underlying texture to drawticksPerCycle
- the number of ticks for the animation to run before starting overstartDirection
- the direction that the animation starts drawing the textureinverted
- when inverted is true, the texture will start fully drawn and be hidden over timeIDrawableStatic getSlotDrawable()
IDrawableStatic createBlankDrawable(int width, int height)
ICraftingGridHelper createCraftingGridHelper(int craftInputSlot1, int craftOutputSlot)
ITickTimer createTickTimer(int ticksPerCycle, int maxValue, boolean countDown)
ticksPerCycle
- the number of ticks for timer to run before starting over at 0maxValue
- the number to count up to before starting over at 0countDown
- if true, the tick timer will count backwards from maxValue