public class GuiHelper extends java.lang.Object implements IGuiHelper
Constructor and Description |
---|
GuiHelper(IStackHelper stackHelper) |
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.
|
net.minecraft.util.ResourceLocation |
getRecipeBackgroundResource() |
net.minecraft.util.ResourceLocation |
getRecipeBackgroundTallResource() |
IDrawableStatic |
getSlotDrawable()
Returns a slot drawable for drawing extra slots on guis
|
IDrawableStatic |
getTabSelected() |
IDrawableStatic |
getTabUnselected() |
public GuiHelper(IStackHelper stackHelper)
public IDrawableStatic createDrawable(@Nullable net.minecraft.util.ResourceLocation resourceLocation, int u, int v, int width, int height)
createDrawable
in interface IGuiHelper
public IDrawableStatic createDrawable(@Nullable net.minecraft.util.ResourceLocation resourceLocation, int u, int v, int width, int height, int paddingTop, int paddingBottom, int paddingLeft, int paddingRight)
createDrawable
in interface IGuiHelper
public IDrawableAnimated createAnimatedDrawable(@Nullable IDrawableStatic drawable, int ticksPerCycle, @Nullable IDrawableAnimated.StartDirection startDirection, boolean inverted)
IGuiHelper
createAnimatedDrawable
in interface IGuiHelper
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 timepublic IDrawableStatic getSlotDrawable()
IGuiHelper
getSlotDrawable
in interface IGuiHelper
public IDrawableStatic createBlankDrawable(int width, int height)
IGuiHelper
createBlankDrawable
in interface IGuiHelper
public ICraftingGridHelper createCraftingGridHelper(int craftInputSlot1, int craftOutputSlot)
IGuiHelper
createCraftingGridHelper
in interface IGuiHelper
public ITickTimer createTickTimer(int ticksPerCycle, int maxValue, boolean countDown)
IGuiHelper
createTickTimer
in interface IGuiHelper
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 maxValuepublic IDrawableStatic getTabSelected()
public IDrawableStatic getTabUnselected()
public net.minecraft.util.ResourceLocation getRecipeBackgroundResource()
public net.minecraft.util.ResourceLocation getRecipeBackgroundTallResource()