|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.src.Gui
net.minecraft.src.GuiButton
moapi.gui.Slider
public class Slider
A replacement for the default MC Slider.
Field Summary | |
---|---|
boolean |
dragging
|
Fields inherited from class net.minecraft.src.GuiButton |
---|
displayString, drawButton, enabled, height, id, width, xPosition, yPosition |
Fields inherited from class net.minecraft.src.Gui |
---|
zLevel |
Constructor Summary | |
---|---|
Slider(int i,
int j,
int k,
ModSliderOption op,
GuiController gui,
boolean worldMode)
Construct a gui slider |
Method Summary | |
---|---|
boolean |
altMousePressed(net.minecraft.client.Minecraft minecraft,
int i,
int j,
boolean rightClick)
Alternate Mouse press action to avoid issues with the obfuscator and to allow right click checks |
protected int |
getHoverState(boolean flag)
|
java.lang.String |
getName()
Return the name for this slider button |
protected void |
mouseDragged(net.minecraft.client.Minecraft minecraft,
int i,
int j)
Perform action on mouse drag |
boolean |
mousePressed(net.minecraft.client.Minecraft minecraft,
int i,
int j)
Mouse press action |
void |
mouseReleased(int i,
int j)
|
void |
setWide(boolean wide)
Set this slider to "wide" mode |
void |
updateDisplayString()
Update the display string |
Methods inherited from class net.minecraft.src.GuiButton |
---|
drawButton |
Methods inherited from class net.minecraft.src.Gui |
---|
drawCenteredString, drawGradientRect, drawHorizontalLine, drawRect, drawString, drawTexturedModalRect, drawVerticalLine |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean dragging
Constructor Detail |
---|
public Slider(int i, int j, int k, ModSliderOption op, GuiController gui, boolean worldMode)
op
- Option Object this representsgui
- Gui representing this objectworldMode
- True when using world valuesMethod Detail |
---|
public java.lang.String getName()
public void setWide(boolean wide)
wide
- Whether to be wide or notprotected void mouseDragged(net.minecraft.client.Minecraft minecraft, int i, int j)
mouseDragged
in class net.minecraft.src.GuiButton
minecraft
- Game instancei
- x position of drag endj
- y position of drag endpublic boolean altMousePressed(net.minecraft.client.Minecraft minecraft, int i, int j, boolean rightClick)
minecraft
- Game instancei
- x position of clickj
- y position of clickrightClick
- True if a right click
public boolean mousePressed(net.minecraft.client.Minecraft minecraft, int i, int j)
mousePressed
in class net.minecraft.src.GuiButton
minecraft
- Game instancei
- x position of clickj
- y position of click
public void updateDisplayString()
public void mouseReleased(int i, int j)
mouseReleased
in class net.minecraft.src.GuiButton
protected int getHoverState(boolean flag)
getHoverState
in class net.minecraft.src.GuiButton
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |