public class GuiElementStatement<S extends IStatement> extends GuiElementSimple<GuiJson<?>> implements IInteractionElement, IReference<S>
Modifier and Type | Field and Description |
---|---|
static SpriteRaw |
ICON_SELECT_HOVER |
static GuiIcon |
ICON_SLOT_BLOCKED |
static GuiIcon |
ICON_SLOT_NOT_SET |
static SpriteNineSliced |
SELECTION_HOVER |
static GuiIcon |
SLOT_COLOUR |
static net.minecraft.util.ResourceLocation |
TEXTURE_SELECTOR |
gui, name
Constructor and Description |
---|
GuiElementStatement(GuiJson<?> gui,
IGuiArea element,
FullStatement<S> ref,
StatementContext<?> ctx,
boolean draw) |
Modifier and Type | Method and Description |
---|---|
void |
addToolTips(java.util.List<ToolTip> tooltips)
Called to add tooltips to the list of existing tool tips.
|
boolean |
canSet(java.lang.Object value) |
void |
drawBackground(float partialTicks) |
S |
get() |
void |
onMouseClicked(int button)
This is called EVEN IF the mouse is not inside your width and height!
|
void |
set(S to) |
getDebugInfo, getHeight, getWidth, getX, getY
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onMouseDragged, onMouseReleased
addHelpElements, drawForeground, getDebugInfo, getThisAndChildrenAt, tick
asImmutable, contains, contains, contains, create, create, create, expand, expand, expand, expand, getCenter, getCenterTop, getCenterX, getCenterY, getEnd, getEndX, getEndY, getHeight, getPosition, getWidth, offset, offset, offset, offset, offset, offsetToOrigin, rectangleToString, resize, resize
getX, getY
setIfCan
public static final net.minecraft.util.ResourceLocation TEXTURE_SELECTOR
public static final GuiIcon SLOT_COLOUR
public static final GuiIcon ICON_SLOT_BLOCKED
public static final GuiIcon ICON_SLOT_NOT_SET
public static final SpriteRaw ICON_SELECT_HOVER
public static final SpriteNineSliced SELECTION_HOVER
public GuiElementStatement(GuiJson<?> gui, IGuiArea element, FullStatement<S> ref, StatementContext<?> ctx, boolean draw)
public S get()
get
in interface IReference<S extends IStatement>
public void set(S to)
set
in interface IReference<S extends IStatement>
public boolean canSet(java.lang.Object value)
canSet
in interface IReference<S extends IStatement>
public void addToolTips(java.util.List<ToolTip> tooltips)
IGuiElement
This is called EVEN IF the mouse is not inside your width and height!
addToolTips
in interface IGuiElement
addToolTips
in interface ITooltipElement
public void drawBackground(float partialTicks)
drawBackground
in interface IGuiElement
public void onMouseClicked(int button)
IInteractionElement
onMouseClicked
in interface IInteractionElement