Package emi.dev.emi.emi.api.widget
Class AnimatedTextureWidget
java.lang.Object
emi.dev.emi.emi.api.widget.Widget
emi.dev.emi.emi.api.widget.TextureWidget
emi.dev.emi.emi.api.widget.AnimatedTextureWidget
- All Implemented Interfaces:
WidgetTooltipHolder<TextureWidget>,Drawable
- Direct Known Subclasses:
FillingArrowWidget
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected final booleanprotected final booleanprotected final intFields inherited from class emi.dev.emi.emi.api.widget.TextureWidget
height, regionHeight, regionWidth, texture, textureHeight, textureWidth, u, v, width, x, y -
Constructor Summary
ConstructorsConstructorDescriptionAnimatedTextureWidget(ResourceLocation texture, int x, int y, int width, int height, int u, int v, int time, boolean horizontal, boolean endToStart, boolean fullToEmpty) AnimatedTextureWidget(ResourceLocation texture, int x, int y, int width, int height, int u, int v, int regionWidth, int regionHeight, int textureWidth, int textureHeight, int time, boolean horizontal, boolean endToStart, boolean fullToEmpty) -
Method Summary
Modifier and TypeMethodDescriptionvoidrender(DrawContext draw, int mouseX, int mouseY, float delta) Methods inherited from class emi.dev.emi.emi.api.widget.TextureWidget
getBounds, getTooltip, tooltipMethods inherited from class emi.dev.emi.emi.api.widget.Widget
keyPressed, mouseClickedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface emi.dev.emi.emi.api.widget.WidgetTooltipHolder
tooltip, tooltipText, tooltipText
-
Field Details
-
time
protected final int time -
horizontal
protected final boolean horizontal -
endToStart
protected final boolean endToStart -
fullToEmpty
protected final boolean fullToEmpty
-
-
Constructor Details
-
AnimatedTextureWidget
public AnimatedTextureWidget(ResourceLocation texture, int x, int y, int width, int height, int u, int v, int regionWidth, int regionHeight, int textureWidth, int textureHeight, int time, boolean horizontal, boolean endToStart, boolean fullToEmpty) -
AnimatedTextureWidget
public AnimatedTextureWidget(ResourceLocation texture, int x, int y, int width, int height, int u, int v, int time, boolean horizontal, boolean endToStart, boolean fullToEmpty)
-
-
Method Details
-
render
- Specified by:
renderin interfaceDrawable- Overrides:
renderin classTextureWidget
-