Package net.minecraft
Class class_10415
java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.ScrollableWidget
net.minecraft.class_10415
- All Implemented Interfaces:
Drawable,Element,Narratable,Navigable,Selectable,Widget
- Direct Known Subclasses:
EditBoxWidget,ScrollableTextWidget,TelemetryEventWidget
- Mappings:
Namespace Name named net/minecraft/class_10415intermediary net/minecraft/class_10415official foo
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType -
Field Summary
FieldsFields inherited from class net.minecraft.client.gui.widget.ScrollableWidget
field_55258Fields inherited from class net.minecraft.client.gui.widget.ClickableWidget
active, alpha, height, hovered, visible, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddrawBox(DrawContext drawContext) protected abstract intprotected intbooleanisMouseOver(double mouseX, double mouseY) Checks if the mouse position is within the bound of the element.booleankeyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.protected intprotected intprotected booleanmethod_65510(int int2, int int3) protected voidmethod_65511(DrawContext drawContext, int int2, int int3, int int4, int int5) protected intprotected intprotected intbooleanmouseClicked(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured.voidplayDownSound(SoundManager soundManager) protected abstract voidrenderContents(DrawContext drawContext, int int2, int int3, float float2) protected voidrenderOverlay(DrawContext drawContext) voidrenderWidget(DrawContext context, int mouseX, int mouseY, float delta) Methods inherited from class net.minecraft.client.gui.widget.ScrollableWidget
drawScrollbar, getDeltaYPerScroll, getMaxScrollY, getScrollbarThumbHeight, getScrollY, method_65505, method_65506, method_65508, mouseDragged, mouseScrolled, onRelease, overflows, setScrollYMethods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendClickableNarrations, appendDefaultNarrations, appendNarrations, drawScrollableText, drawScrollableText, drawScrollableText, forEachChild, getBottom, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, getRight, getTooltip, getType, getWidth, getX, getY, isFocused, isHovered, isNarratable, isSelected, isValidClickButton, mouseReleased, onClick, onDrag, playClickSound, render, setAlpha, setDimensions, setDimensionsAndPosition, setFocused, setHeight, setMessage, setNavigationOrder, setTooltip, setTooltipDelay, setWidth, setX, setYMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
charTyped, getFocusedPath, keyReleased, method_65515, mouseMovedMethods inherited from interface net.minecraft.client.gui.Selectable
method_65516Methods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
field_55260
- Mappings:
Namespace Name Mixin selector named field_55260Lnet/minecraft/class_10415;field_55260:Lnet/minecraft/client/gui/screen/ButtonTextures;intermediary field_55260Lnet/minecraft/class_10415;field_55260:Lnet/minecraft/class_8666;official aLfoo;a:Lfqf;
-
field_55261
private static final int field_55261- See Also:
- Mappings:
Namespace Name Mixin selector named field_55261Lnet/minecraft/class_10415;field_55261:Iintermediary field_55261Lnet/minecraft/class_10415;field_55261:Iofficial cLfoo;c:I
-
-
Constructor Details
-
class_10415
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/widget/ClickableWidget;<init>(IIIILnet/minecraft/text/Text;)Vintermediary <init>Lnet/minecraft/class_339;<init>(IIIILnet/minecraft/class_2561;)Vofficial <init>Lfop;<init>(IIIILwo;)V
-
-
Method Details
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured. The button number is identified by the constants inGLFWclass.- Specified by:
mouseClickedin interfaceElement- Overrides:
mouseClickedin classClickableWidget- Parameters:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousebutton- the mouse button number- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named mouseClickedLnet/minecraft/client/gui/Element;mouseClicked(DDI)Zintermediary method_25402Lnet/minecraft/class_364;method_25402(DDI)Zofficial aLfqp;a(DDI)Z
-
keyPressed
public boolean keyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured. The key code is identified by the constants inGLFWclass.- Parameters:
keyCode- the named key code of the event as described in theGLFWclassscanCode- the unique/platform-specific scan code of the keyboard inputmodifiers- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(III)Zofficial aLfqp;a(III)Z
-
renderWidget
- Specified by:
renderWidgetin classClickableWidget- Mappings:
Namespace Name Mixin selector named renderWidgetLnet/minecraft/client/gui/widget/ClickableWidget;renderWidget(Lnet/minecraft/client/gui/DrawContext;IIF)Vintermediary method_48579Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)Vofficial bLfop;b(Lfod;IIF)V
-
renderOverlay
- Mappings:
Namespace Name Mixin selector named renderOverlayLnet/minecraft/class_10415;renderOverlay(Lnet/minecraft/client/gui/DrawContext;)Vintermediary method_44384Lnet/minecraft/class_10415;method_44384(Lnet/minecraft/class_332;)Vofficial bLfoo;b(Lfod;)V
-
method_65509
protected int method_65509()- Mappings:
Namespace Name Mixin selector named method_65509Lnet/minecraft/class_10415;method_65509()Iintermediary method_65509Lnet/minecraft/class_10415;method_65509()Iofficial aLfoo;a()I
-
method_65512
protected int method_65512()- Mappings:
Namespace Name Mixin selector named method_65512Lnet/minecraft/class_10415;method_65512()Iintermediary method_65512Lnet/minecraft/class_10415;method_65512()Iofficial bLfoo;b()I
-
isMouseOver
public boolean isMouseOver(double mouseX, double mouseY) Checks if the mouse position is within the bound of the element.- Specified by:
isMouseOverin interfaceElement- Overrides:
isMouseOverin classClickableWidget- Parameters:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mouse- Returns:
trueif the mouse is within the bound of the element, otherwisefalse- Mappings:
Namespace Name Mixin selector named isMouseOverLnet/minecraft/client/gui/Element;isMouseOver(DD)Zintermediary method_25405Lnet/minecraft/class_364;method_25405(DD)Zofficial a_Lfqp;a_(DD)Z
-
method_65507
protected int method_65507()- Overrides:
method_65507in classScrollableWidget- Mappings:
Namespace Name Mixin selector named method_65507Lnet/minecraft/client/gui/widget/ScrollableWidget;method_65507()Iintermediary method_65507Lnet/minecraft/class_7528;method_65507()Iofficial lLfok;l()I
-
getContentsHeightWithPadding
protected int getContentsHeightWithPadding()- Specified by:
getContentsHeightWithPaddingin classScrollableWidget- Mappings:
Namespace Name Mixin selector named getContentsHeightWithPaddingLnet/minecraft/client/gui/widget/ScrollableWidget;getContentsHeightWithPadding()Iintermediary method_44395Lnet/minecraft/class_7528;method_44395()Iofficial nLfok;n()I
-
drawBox
- Mappings:
Namespace Name Mixin selector named drawBoxLnet/minecraft/class_10415;drawBox(Lnet/minecraft/client/gui/DrawContext;)Vintermediary method_44386Lnet/minecraft/class_10415;method_44386(Lnet/minecraft/class_332;)Vofficial cLfoo;c(Lfod;)V
-
method_65511
- Mappings:
Namespace Name Mixin selector named method_65511Lnet/minecraft/class_10415;method_65511(Lnet/minecraft/client/gui/DrawContext;IIII)Vintermediary method_65511Lnet/minecraft/class_10415;method_65511(Lnet/minecraft/class_332;IIII)Vofficial aLfoo;a(Lfod;IIII)V
-
method_65510
protected boolean method_65510(int int2, int int3) - Mappings:
Namespace Name Mixin selector named method_65510Lnet/minecraft/class_10415;method_65510(II)Zintermediary method_65510Lnet/minecraft/class_10415;method_65510(II)Zofficial aLfoo;a(II)Z
-
getContentsHeight
protected abstract int getContentsHeight()- Mappings:
Namespace Name Mixin selector named getContentsHeightLnet/minecraft/class_10415;getContentsHeight()Iintermediary method_44391Lnet/minecraft/class_10415;method_44391()Iofficial cLfoo;c()I
-
renderContents
- Mappings:
Namespace Name Mixin selector named renderContentsLnet/minecraft/class_10415;renderContents(Lnet/minecraft/client/gui/DrawContext;IIF)Vintermediary method_44389Lnet/minecraft/class_10415;method_44389(Lnet/minecraft/class_332;IIF)Vofficial cLfoo;c(Lfod;IIF)V
-
method_65513
protected int method_65513()- Mappings:
Namespace Name Mixin selector named method_65513Lnet/minecraft/class_10415;method_65513()Iintermediary method_65513Lnet/minecraft/class_10415;method_65513()Iofficial eLfoo;e()I
-
method_65514
protected int method_65514()- Mappings:
Namespace Name Mixin selector named method_65514Lnet/minecraft/class_10415;method_65514()Iintermediary method_65514Lnet/minecraft/class_10415;method_65514()Iofficial pLfoo;p()I
-
playDownSound
- Overrides:
playDownSoundin classClickableWidget- Mappings:
Namespace Name Mixin selector named playDownSoundLnet/minecraft/client/gui/widget/ClickableWidget;playDownSound(Lnet/minecraft/client/sound/SoundManager;)Vintermediary method_25354Lnet/minecraft/class_339;method_25354(Lnet/minecraft/class_1144;)Vofficial aLfop;a(Lhjo;)V
-