public class GuiElementStatement<S extends IStatement> extends GuiElementSimple 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(BuildCraftGui 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(S value) |
S |
convertToType(java.lang.Object value) |
void |
drawBackground(float partialTicks) |
S |
get() |
java.lang.Class<S> |
getHeldType() |
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, getYclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonKeyPress, onMouseDragged, onMouseReleasedaddHelpElements, drawForeground, getDebugInfo, getThisAndChildrenAt, tickasImmutable, 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, resizegetX, getYsetIfCanpublic 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(BuildCraftGui 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(S value)
canSet in interface IReference<S extends IStatement>public S convertToType(java.lang.Object value)
convertToType in interface IReference<S extends IStatement>public java.lang.Class<S> getHeldType()
getHeldType in interface IReference<S extends IStatement>public void addToolTips(java.util.List<ToolTip> tooltips)
IGuiElementThis is called EVEN IF the mouse is not inside your width and height!
addToolTips in interface IGuiElementaddToolTips in interface ITooltipElementpublic void drawBackground(float partialTicks)
drawBackground in interface IGuiElementpublic void onMouseClicked(int button)
IInteractionElementonMouseClicked in interface IInteractionElement