public class GeneticAnalyzer extends ElementGroup implements IGeneticAnalyzer, IScrollable
| Modifier and Type | Field and Description |
|---|---|
static Drawable |
ANALYZER_BUTTON |
static Drawable |
SCROLLBAR_BACKGROUND |
static Drawable |
SCROLLBAR_SLIDER |
static Drawable |
SELECTION_BAR |
static net.minecraft.util.ResourceLocation |
TEXTURE |
elementscropElement, cropHeight, cropWidth, cropX, cropY, height, parent, visible, width, xOffset, xPos, yOffset, yPos| Constructor and Description |
|---|
GeneticAnalyzer(IWindowElement window,
int xPos,
int yPos,
boolean rightBoarder,
IGeneticAnalyzerProvider provider) |
| Modifier and Type | Method and Description |
|---|---|
void |
add() |
void |
drawTooltip(net.minecraft.client.gui.GuiScreen gui,
int mouseX,
int mouseY)
Draws the tooltip of the element that is under the mouse.
|
IGuiElement |
getItemElement() |
IGeneticAnalyzerProvider |
getProvider() |
int |
getSelected() |
int |
getSelectedSlot() |
void |
init()
Called at the end of the constructor of the analyzer provider.
|
boolean |
isFocused(int mouseX,
int mouseY) |
void |
onScroll(int value) |
void |
setSelectedSlot(int selectedSlot) |
void |
setVisible(boolean visible) |
void |
update()
Updates the displayed content of the analyzer.
|
void |
updateSelected() |
add, clear, drawable, drawable, drawElement, getElements, getLastElement, horizontal, horizontal, item, label, label, label, label, label, label, layoutHelper, pane, pane, remove, splitText, splitText, splitText, splitText, updateClient, vertical, verticaladdEventHandler, addTooltip, addTooltip, addTooltip, clearTooltip, draw, getAbsoluteX, getAbsoluteY, getAlign, getCropElement, getCropHeight, getCropWidth, getCropX, getCropY, getHeight, getParent, getTooltip, getTooltip, getWidth, getWindow, getX, getY, hasTooltip, hide, isCropped, isEnabled, isMouseOver, isMouseOver, isVisible, onCreation, onDeletion, onUpdateClient, receiveEvent, setAlign, setBounds, setCroppedZone, setHeight, setLocation, setOffset, setParent, setSize, setWidth, setXPosition, setYPosition, show, toStringdrawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisVisibleaddEventHandler, addEventHandler, addEventHandler, addSelfEventHandler, addTooltip, addTooltip, addTooltip, canFocus, canMouseOver, clearTooltip, draw, drawElement, getAbsoluteX, getAbsoluteY, getAlign, getHeight, getParent, getTooltip, getTooltip, getWidth, getWindow, getX, getY, hasTooltip, hide, isEnabled, isMouseOver, isMouseOver, onCreation, onDeletion, postEvent, postEvent, receiveEvent, setAlign, setBounds, setHeight, setLocation, setOffset, setParent, setSize, setWidth, setXPosition, setYPosition, show, updateClientgetCropElement, getCropHeight, getCropWidth, getCropX, getCropY, isCropped, setCroppedZonepublic static final net.minecraft.util.ResourceLocation TEXTURE
public static final Drawable SCROLLBAR_BACKGROUND
public static final Drawable SCROLLBAR_SLIDER
public static final Drawable SELECTION_BAR
public static final Drawable ANALYZER_BUTTON
public GeneticAnalyzer(IWindowElement window, int xPos, int yPos, boolean rightBoarder, IGeneticAnalyzerProvider provider)
public void init()
IGeneticAnalyzerinit in interface IGeneticAnalyzerpublic void setVisible(boolean visible)
setVisible in interface IGeneticAnalyzerpublic IGeneticAnalyzerProvider getProvider()
getProvider in interface IGeneticAnalyzerpublic IGuiElement getItemElement()
getItemElement in interface IGeneticAnalyzerpublic void update()
IGeneticAnalyzerupdate in interface IGeneticAnalyzerpublic void drawTooltip(net.minecraft.client.gui.GuiScreen gui,
int mouseX,
int mouseY)
IGeneticAnalyzerdrawTooltip in interface IGeneticAnalyzerpublic boolean isFocused(int mouseX,
int mouseY)
isFocused in interface IScrollablemouseX - the mouse x position relative to the screenmouseY - the mouse y position relative to the screenpublic void onScroll(int value)
onScroll in interface IScrollablepublic void add()
public void setSelectedSlot(int selectedSlot)
setSelectedSlot in interface IGeneticAnalyzerpublic int getSelectedSlot()
public void updateSelected()
updateSelected in interface IGeneticAnalyzerpublic int getSelected()
getSelected in interface IGeneticAnalyzer