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)
Create a crafting grid helper.
|
default IDrawableStatic |
createDrawable(net.minecraft.util.ResourceLocation resourceLocation,
int u,
int v,
int width,
int height)
Create a drawable from part of a standard 256x256 gui texture.
|
<V> IDrawable |
createDrawableIngredient(V ingredient)
Returns a 16x16 drawable for the given ingredient, matching the one JEI draws in the ingredient list.
|
ITickTimer |
createTickTimer(int ticksPerCycle,
int maxValue,
boolean countDown)
Create a timer to help with rendering things that normally depend on ticks.
|
IDrawableBuilder |
drawableBuilder(net.minecraft.util.ResourceLocation resourceLocation,
int u,
int v,
int width,
int height)
Create a
IDrawableBuilder which gives more control over drawable creation. |
IDrawableStatic |
getSlotDrawable()
Returns a slot drawable for drawing extra slots on guis
|
default IDrawableStatic createDrawable(net.minecraft.util.ResourceLocation resourceLocation, int u, int v, int width, int height)
IDrawableBuilder drawableBuilder(net.minecraft.util.ResourceLocation resourceLocation, int u, int v, int width, int height)
IDrawableBuilder
which gives more control over drawable creation.IDrawableBuilder
with the given resource locationIDrawableAnimated 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)
<V> IDrawable createDrawableIngredient(V ingredient)
ICraftingGridHelper createCraftingGridHelper(int craftInputSlot1)
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