Package net.minecraft.client.gui
Class GuiSlider
- java.lang.Object
-
- net.minecraft.client.gui.Gui
-
- net.minecraft.client.gui.GuiButton
-
- net.minecraft.client.gui.GuiSlider
-
public class GuiSlider extends GuiButton
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
GuiSlider.FormatHelper
-
Field Summary
Fields Modifier and Type Field Description boolean
isMouseDown
-
Fields inherited from class net.minecraft.client.gui.GuiButton
buttonTextures, displayString, enabled, height, hovered, id, visible, width, xPosition, yPosition
-
Fields inherited from class net.minecraft.client.gui.Gui
icons, optionsBackground, statIcons, zLevel
-
-
Constructor Summary
Constructors Constructor Description GuiSlider(GuiPageButtonList.GuiResponder guiResponder, int idIn, int x, int y, java.lang.String name, float min, float max, float defaultValue, GuiSlider.FormatHelper formatter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
func_175217_d()
void
func_175218_a(float parFloat1, boolean parFlag)
void
func_175219_a(float parFloat1)
float
func_175220_c()
protected int
getHoverState(boolean var1)
+ Returns 0 if the button is disabled, 1 if the mouse is NOT hovering over this button and 2 if it IS hovering over this button.protected void
mouseDragged(Minecraft var1, int i, int var3)
+ Fired when the mouse button is dragged.boolean
mousePressed(Minecraft minecraft, int i, int j)
+ Returns true if the mouse has been pressed on this control.void
mouseReleased(int var1, int var2)
+ Fired when the mouse button is released.-
Methods inherited from class net.minecraft.client.gui.GuiButton
drawButton, drawButtonForegroundLayer, getButtonWidth, isMouseOver, playPressSound, setWidth
-
Methods inherited from class net.minecraft.client.gui.Gui
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
-
-
-
-
Constructor Detail
-
GuiSlider
public GuiSlider(GuiPageButtonList.GuiResponder guiResponder, int idIn, int x, int y, java.lang.String name, float min, float max, float defaultValue, GuiSlider.FormatHelper formatter)
-
-
Method Detail
-
func_175220_c
public float func_175220_c()
-
func_175218_a
public void func_175218_a(float parFloat1, boolean parFlag)
-
func_175217_d
public float func_175217_d()
-
getHoverState
protected int getHoverState(boolean var1)
+ Returns 0 if the button is disabled, 1 if the mouse is NOT hovering over this button and 2 if it IS hovering over this button.- Overrides:
getHoverState
in classGuiButton
-
mouseDragged
protected void mouseDragged(Minecraft var1, int i, int var3)
+ Fired when the mouse button is dragged. Equivalent of MouseListener.mouseDragged(MouseEvent e).- Overrides:
mouseDragged
in classGuiButton
-
func_175219_a
public void func_175219_a(float parFloat1)
-
mousePressed
public boolean mousePressed(Minecraft minecraft, int i, int j)
+ Returns true if the mouse has been pressed on this control. Equivalent of MouseListener.mousePressed(MouseEvent e).- Overrides:
mousePressed
in classGuiButton
-
mouseReleased
public void mouseReleased(int var1, int var2)
+ Fired when the mouse button is released. Equivalent of MouseListener.mouseReleased(MouseEvent e).- Overrides:
mouseReleased
in classGuiButton
-
-