public class DrawableBuilder extends java.lang.Object implements IDrawableBuilder
| Constructor and Description |
|---|
DrawableBuilder(net.minecraft.util.ResourceLocation resourceLocation,
int u,
int v,
int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
IDrawableBuilder |
addPadding(int paddingTop,
int paddingBottom,
int paddingLeft,
int paddingRight)
Add extra blank space around the texture by adjusting the padding.
|
IDrawableStatic |
build()
Creates a normal, non-animated drawable.
|
IDrawableAnimated |
buildAnimated(int ticksPerCycle,
IDrawableAnimated.StartDirection startDirection,
boolean inverted)
Creates an animated texture for a gui, revealing the texture over time.
|
IDrawableAnimated |
buildAnimated(ITickTimer tickTimer,
IDrawableAnimated.StartDirection startDirection)
Creates an animated texture for a gui, revealing the texture over time.
|
IDrawableBuilder |
setTextureSize(int width,
int height)
For textures that are not 256x256, specify the size.
|
IDrawableBuilder |
trim(int trimTop,
int trimBottom,
int trimLeft,
int trimRight)
Remove blank space around the texture by trimming it.
|
public DrawableBuilder(net.minecraft.util.ResourceLocation resourceLocation,
int u,
int v,
int width,
int height)
public IDrawableBuilder setTextureSize(int width, int height)
IDrawableBuildersetTextureSize in interface IDrawableBuilderpublic IDrawableBuilder addPadding(int paddingTop, int paddingBottom, int paddingLeft, int paddingRight)
IDrawableBuilderaddPadding in interface IDrawableBuilderpublic IDrawableBuilder trim(int trimTop, int trimBottom, int trimLeft, int trimRight)
IDrawableBuildertrim in interface IDrawableBuilderpublic IDrawableStatic build()
IDrawableBuilderbuild in interface IDrawableBuilderpublic IDrawableAnimated buildAnimated(int ticksPerCycle, IDrawableAnimated.StartDirection startDirection, boolean inverted)
IDrawableBuilderbuildAnimated in interface IDrawableBuilderticksPerCycle - 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 IDrawableAnimated buildAnimated(ITickTimer tickTimer, IDrawableAnimated.StartDirection startDirection)
IDrawableBuilderbuildAnimated in interface IDrawableBuildertickTimer - a custom tick timer, used for advanced control over the animationstartDirection - the direction that the animation starts drawing the texture