Package net.minecraft
Class class_5676<T>
- All Implemented Interfaces:
Drawable,Element,OrderableTooltip
@Environment(CLIENT) public class class_5676<T> extends AbstractPressableButtonWidget implements OrderableTooltip
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classclass_5676.class_5677<T>static interfaceclass_5676.class_5678<T>static interfaceclass_5676.class_5679<T>(package private) static interfaceclass_5676.class_5680<T> -
Field Summary
Fields Modifier and Type Field Description private static BooleanSupplierfield_27961private static List<Boolean>field_27962private Textfield_27963private intfield_27964private Tfield_27965private class_5676.class_5680<T>field_27966private Function<T,Text>field_27967private Function<class_5676<T>,MutableText>field_27968private class_5676.class_5678<T>field_27969private class_5676.class_5679<T>field_27970private booleanfield_27971Fields inherited from class net.minecraft.client.gui.widget.AbstractButtonWidget
active, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, yFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE -
Constructor Summary
Constructors Modifier Constructor Description privateclass_5676(int int2, int int3, int int4, int int5, Text text, Text text2, int int6, T t, class_5676.class_5680<T> class_5680, Function<T,Text> function, Function<class_5676<T>,MutableText> function2, class_5676.class_5678<T> class_5678, class_5676.class_5679<T> class_5679, boolean bool) -
Method Summary
Modifier and Type Method Description protected MutableTextgetNarrationMessage()List<OrderedText>getOrderedTooltip()Tmethod_32603()voidmethod_32605(T t)static <T> class_5676.class_5677<T>method_32606(Function<T,Text> function)static class_5676.class_5677<Boolean>method_32607(Text text, Text text2)private voidmethod_32609(T t)private MutableTextmethod_32610(T t)MutableTextmethod_32611()private voidmethod_32612(int int2)static class_5676.class_5677<Boolean>method_32613(boolean bool)static class_5676.class_5677<Boolean>method_32614()booleanmouseScrolled(double double2, double double3, double double4)Callback for when a mouse button scroll event has been captured.voidonPress()Methods inherited from class net.minecraft.client.gui.widget.AbstractPressableButtonWidget
keyPressed, onClickMethods inherited from class net.minecraft.client.gui.widget.AbstractButtonWidget
changeFocus, clicked, getHeight, getMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, method_32602, mouseClicked, mouseDragged, mouseReleased, narrate, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, render, renderBg, renderButton, renderToolTip, setAlpha, setFocused, setMessage, setWidthMethods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffsetMethods 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, keyReleased, mouseMoved
-
Field Details
-
field_27961
-
field_27962
-
field_27963
-
field_27964
private int field_27964 -
field_27965
-
field_27966
-
field_27967
-
field_27968
-
field_27969
-
field_27970
-
field_27971
private final boolean field_27971
-
-
Constructor Details
-
class_5676
private class_5676(int int2, int int3, int int4, int int5, Text text, Text text2, int int6, T t, class_5676.class_5680<T> class_5680, Function<T,Text> function, Function<class_5676<T>,MutableText> function2, class_5676.class_5678<T> class_5678, class_5676.class_5679<T> class_5679, boolean bool)
-
-
Method Details
-
onPress
public void onPress()- Specified by:
onPressin classAbstractPressableButtonWidget
-
method_32612
private void method_32612(int int2) -
mouseScrolled
public boolean mouseScrolled(double double2, double double3, double double4)Description copied from interface:ElementCallback for when a mouse button scroll event has been captured.- Specified by:
mouseScrolledin interfaceElement- Parameters:
double2- the X coordinate of the mousedouble3- the Y coordinate of the mousedouble4- value is> 1if scrolled down,< 1if scrolled up- Returns:
trueto indicate that the event handling is successful/valid- See Also:
Mouse.onMouseScroll(long, double, double)
-
method_32605
-
method_32609
-
method_32610
-
method_32603
-
getNarrationMessage
- Overrides:
getNarrationMessagein classAbstractButtonWidget
-
method_32611
-
getOrderedTooltip
- Specified by:
getOrderedTooltipin interfaceOrderableTooltip
-
method_32606
-
method_32607
-
method_32614
-
method_32613
-