类 RealmsWorldSlotButton
- java.lang.Object
-
- net.minecraft.client.gui.DrawableHelper
-
- net.minecraft.client.gui.widget.AbstractButtonWidget
-
- net.minecraft.client.gui.widget.AbstractPressableButtonWidget
-
- net.minecraft.client.gui.widget.ButtonWidget
-
- net.minecraft.client.realms.gui.RealmsWorldSlotButton
-
- 所有已实现的接口:
Drawable,Element,TickableElement
@Environment(CLIENT) public class RealmsWorldSlotButton extends ButtonWidget implements TickableElement
- Mappings:
Namespace Name official drnintermediary net/minecraft/class_4367named net/minecraft/client/realms/gui/RealmsWorldSlotButton
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classRealmsWorldSlotButton.Actionstatic classRealmsWorldSlotButton.State-
从类继承的嵌套类/接口 net.minecraft.client.gui.widget.ButtonWidget
ButtonWidget.PressAction, ButtonWidget.TooltipSupplier
-
-
字段概要
字段 修饰符和类型 字段 说明 private static TextACTIVE_TOOLTIPprivate intanimTickstatic IdentifierEMPTY_FRAMEprivate static TextMINIGAME_TOOLTIPstatic IdentifierPANORAMA_0static IdentifierPANORAMA_2static IdentifierPANORAMA_3private Supplier<RealmsServer>serverDataProviderstatic IdentifierSLOT_FRAMEprivate intslotIndexprivate @Nullable RealmsWorldSlotButton.Statestateprivate static TextTOOLTIPprivate Consumer<Text>toolTipSetter-
从类继承的字段 net.minecraft.client.gui.widget.ButtonWidget
EMPTY, onPress, tooltipSupplier
-
从类继承的字段 net.minecraft.client.gui.widget.AbstractButtonWidget
active, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, y
-
从类继承的字段 net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
-
构造器概要
构造器 构造器 说明 RealmsWorldSlotButton(int x, int y, int width, int height, Supplier<RealmsServer> serverDataProvider, Consumer<Text> toolTipSetter, int id, ButtonWidget.PressAction action)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 private voiddrawSlotFrame(MatrixStack matrices, int x, int y, int mouseX, int mouseY, boolean bool, String text, int int2, long long2, @Nullable String string, boolean bool2, boolean bool3, RealmsWorldSlotButton.Action action, @Nullable Text text2)@Nullable RealmsWorldSlotButton.StategetState()private com.mojang.datafixers.util.Pair<Text,Text>method_27454(RealmsServer realmsServer, String string, boolean bool, boolean bool2, RealmsWorldSlotButton.Action action)private static RealmsWorldSlotButton.Actionmethod_27455(RealmsServer realmsServer, boolean bool, boolean bool2)voidrenderButton(MatrixStack matrices, int mouseX, int mouseY, float delta)voidtick()-
从类继承的方法 net.minecraft.client.gui.widget.ButtonWidget
onPress, renderToolTip
-
从类继承的方法 net.minecraft.client.gui.widget.AbstractPressableButtonWidget
keyPressed, onClick
-
从类继承的方法 net.minecraft.client.gui.widget.AbstractButtonWidget
changeFocus, clicked, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, render, renderBg, setAlpha, setFocused, setMessage, setWidth
-
从类继承的方法 net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, method_35719, method_35720, setZOffset
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 net.minecraft.client.gui.Element
charTyped, keyReleased, mouseMoved, mouseScrolled
-
-
-
-
字段详细资料
-
SLOT_FRAME
public static final Identifier SLOT_FRAME
- Mappings:
Namespace Name Mixin selector official aLdrn;a:Lwp;intermediary field_22681Lnet/minecraft/class_4367;field_22681:Lnet/minecraft/class_2960;named SLOT_FRAMELnet/minecraft/client/realms/gui/RealmsWorldSlotButton;SLOT_FRAME:Lnet/minecraft/util/Identifier;
-
EMPTY_FRAME
public static final Identifier EMPTY_FRAME
- Mappings:
Namespace Name Mixin selector official bLdrn;b:Lwp;intermediary field_22682Lnet/minecraft/class_4367;field_22682:Lnet/minecraft/class_2960;named EMPTY_FRAMELnet/minecraft/client/realms/gui/RealmsWorldSlotButton;EMPTY_FRAME:Lnet/minecraft/util/Identifier;
-
PANORAMA_0
public static final Identifier PANORAMA_0
- Mappings:
Namespace Name Mixin selector official cLdrn;c:Lwp;intermediary field_22683Lnet/minecraft/class_4367;field_22683:Lnet/minecraft/class_2960;named PANORAMA_0Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;PANORAMA_0:Lnet/minecraft/util/Identifier;
-
PANORAMA_2
public static final Identifier PANORAMA_2
- Mappings:
Namespace Name Mixin selector official dLdrn;d:Lwp;intermediary field_22684Lnet/minecraft/class_4367;field_22684:Lnet/minecraft/class_2960;named PANORAMA_2Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;PANORAMA_2:Lnet/minecraft/util/Identifier;
-
PANORAMA_3
public static final Identifier PANORAMA_3
- Mappings:
Namespace Name Mixin selector official eLdrn;e:Lwp;intermediary field_22685Lnet/minecraft/class_4367;field_22685:Lnet/minecraft/class_2960;named PANORAMA_3Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;PANORAMA_3:Lnet/minecraft/util/Identifier;
-
ACTIVE_TOOLTIP
private static final Text ACTIVE_TOOLTIP
- Mappings:
Namespace Name Mixin selector official vLdrn;v:Lon;intermediary field_26468Lnet/minecraft/class_4367;field_26468:Lnet/minecraft/class_2561;named ACTIVE_TOOLTIPLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;ACTIVE_TOOLTIP:Lnet/minecraft/text/Text;
-
MINIGAME_TOOLTIP
private static final Text MINIGAME_TOOLTIP
- Mappings:
Namespace Name Mixin selector official wLdrn;w:Lon;intermediary field_26469Lnet/minecraft/class_4367;field_26469:Lnet/minecraft/class_2561;named MINIGAME_TOOLTIPLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;MINIGAME_TOOLTIP:Lnet/minecraft/text/Text;
-
TOOLTIP
private static final Text TOOLTIP
- Mappings:
Namespace Name Mixin selector official xLdrn;x:Lon;intermediary field_26470Lnet/minecraft/class_4367;field_26470:Lnet/minecraft/class_2561;named TOOLTIPLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;TOOLTIP:Lnet/minecraft/text/Text;
-
serverDataProvider
private final Supplier<RealmsServer> serverDataProvider
- Mappings:
Namespace Name Mixin selector official yLdrn;y:Ljava/util/function/Supplier;intermediary field_19672Lnet/minecraft/class_4367;field_19672:Ljava/util/function/Supplier;named serverDataProviderLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;serverDataProvider:Ljava/util/function/Supplier;
-
toolTipSetter
private final Consumer<Text> toolTipSetter
- Mappings:
Namespace Name Mixin selector official zLdrn;z:Ljava/util/function/Consumer;intermediary field_19673Lnet/minecraft/class_4367;field_19673:Ljava/util/function/Consumer;named toolTipSetterLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;toolTipSetter:Ljava/util/function/Consumer;
-
slotIndex
private final int slotIndex
- Mappings:
Namespace Name Mixin selector official ALdrn;A:Iintermediary field_19675Lnet/minecraft/class_4367;field_19675:Inamed slotIndexLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;slotIndex:I
-
animTick
private int animTick
- Mappings:
Namespace Name Mixin selector official BLdrn;B:Iintermediary field_19676Lnet/minecraft/class_4367;field_19676:Inamed animTickLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;animTick:I
-
state
@Nullable private @Nullable RealmsWorldSlotButton.State state
- Mappings:
Namespace Name Mixin selector official CLdrn;C:Ldrn$b;intermediary field_19677Lnet/minecraft/class_4367;field_19677:Lnet/minecraft/class_4367$class_4370;named stateLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;state:Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton$State;
-
-
构造器详细资料
-
RealmsWorldSlotButton
public RealmsWorldSlotButton(int x, int y, int width, int height, Supplier<RealmsServer> serverDataProvider, Consumer<Text> toolTipSetter, int id, ButtonWidget.PressAction action)- Mappings:
Namespace Name Mixin selector official <init>Ldrn;<init>(IIIILjava/util/function/Supplier;Ljava/util/function/Consumer;ILdvw$a;)Vintermediary <init>Lnet/minecraft/class_4367;<init>(IIIILjava/util/function/Supplier;Ljava/util/function/Consumer;ILnet/minecraft/class_4185$class_4241;)Vnamed <init>Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;<init>(IIIILjava/util/function/Supplier;Ljava/util/function/Consumer;ILnet/minecraft/client/gui/widget/ButtonWidget$PressAction;)V
-
-
方法详细资料
-
getState
@Nullable public @Nullable RealmsWorldSlotButton.State getState()
- Mappings:
Namespace Name Mixin selector official aLdrn;a()Ldrn$b;intermediary method_25099Lnet/minecraft/class_4367;method_25099()Lnet/minecraft/class_4367$class_4370;named getStateLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;getState()Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton$State;
-
tick
public void tick()
- 指定者:
tick在接口中TickableElement- Mappings:
Namespace Name Mixin selector official dLdwp;d()Vintermediary method_25393Lnet/minecraft/class_4893;method_25393()Vnamed tickLnet/minecraft/client/gui/screen/TickableElement;tick()V
-
method_27455
private static RealmsWorldSlotButton.Action method_27455(RealmsServer realmsServer, boolean bool, boolean bool2)
- Mappings:
Namespace Name Mixin selector official aLdrn;a(Ldqn;ZZ)Ldrn$a;intermediary method_27455Lnet/minecraft/class_4367;method_27455(Lnet/minecraft/class_4877;ZZ)Lnet/minecraft/class_4367$class_4368;named method_27455Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;method_27455(Lnet/minecraft/client/realms/dto/RealmsServer;ZZ)Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton$Action;
-
method_27454
private com.mojang.datafixers.util.Pair<Text,Text> method_27454(RealmsServer realmsServer, String string, boolean bool, boolean bool2, RealmsWorldSlotButton.Action action)
- Mappings:
Namespace Name Mixin selector official aLdrn;a(Ldqn;Ljava/lang/String;ZZLdrn$a;)Lcom/mojang/datafixers/util/Pair;intermediary method_27454Lnet/minecraft/class_4367;method_27454(Lnet/minecraft/class_4877;Ljava/lang/String;ZZLnet/minecraft/class_4367$class_4368;)Lcom/mojang/datafixers/util/Pair;named method_27454Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;method_27454(Lnet/minecraft/client/realms/dto/RealmsServer;Ljava/lang/String;ZZLnet/minecraft/client/realms/gui/RealmsWorldSlotButton$Action;)Lcom/mojang/datafixers/util/Pair;
-
renderButton
public void renderButton(MatrixStack matrices, int mouseX, int mouseY, float delta)
- 覆盖:
renderButton在类中ButtonWidget- Mappings:
Namespace Name Mixin selector official bLdvu;b(Ldpi;IIF)Vintermediary method_25359Lnet/minecraft/class_339;method_25359(Lnet/minecraft/class_4587;IIF)Vnamed renderButtonLnet/minecraft/client/gui/widget/AbstractButtonWidget;renderButton(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
drawSlotFrame
private void drawSlotFrame(MatrixStack matrices, int x, int y, int mouseX, int mouseY, boolean bool, String text, int int2, long long2, @Nullable @Nullable String string, boolean bool2, boolean bool3, RealmsWorldSlotButton.Action action, @Nullable @Nullable Text text2)
- Mappings:
Namespace Name Mixin selector official aLdrn;a(Ldpi;IIIIZLjava/lang/String;IJLjava/lang/String;ZZLdrn$a;Lon;)Vintermediary method_21107Lnet/minecraft/class_4367;method_21107(Lnet/minecraft/class_4587;IIIIZLjava/lang/String;IJLjava/lang/String;ZZLnet/minecraft/class_4367$class_4368;Lnet/minecraft/class_2561;)Vnamed drawSlotFrameLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;drawSlotFrame(Lnet/minecraft/client/util/math/MatrixStack;IIIIZLjava/lang/String;IJLjava/lang/String;ZZLnet/minecraft/client/realms/gui/RealmsWorldSlotButton$Action;Lnet/minecraft/text/Text;)V
-
-