com.mojang.realmsclient.gui

public class RealmsWorldSlotButton

extends Button

All mapped superinterfaces:

Widget, GuiEventListener, NarratableEntry, NarrationSupplier

dsq
com.mojang.realmsclient.gui.RealmsWorldSlotButton
net.minecraft.class_4367
net.minecraft.client.realms.gui.RealmsWorldSlotButton
net.minecraft.src.C_3279_

Field summary

Modifier and TypeField
public static final ResourceLocation
a
SLOT_FRAME_LOCATION
field_22681
SLOT_FRAME
f_87917_
public static final ResourceLocation
b
EMPTY_SLOT_LOCATION
field_22682
EMPTY_FRAME
f_87918_
public static final ResourceLocation
c
DEFAULT_WORLD_SLOT_1
field_22683
PANORAMA_0
f_87919_
public static final ResourceLocation
d
DEFAULT_WORLD_SLOT_2
field_22684
PANORAMA_2
f_87920_
public static final ResourceLocation
e
DEFAULT_WORLD_SLOT_3
field_22685
PANORAMA_3
f_87921_
private static final Component
u
SLOT_ACTIVE_TOOLTIP
field_26468
ACTIVE_TOOLTIP
f_87922_
private static final Component
v
SWITCH_TO_MINIGAME_SLOT_TOOLTIP
field_26469
MINIGAME_TOOLTIP
f_87923_
private static final Component
w
SWITCH_TO_WORLD_SLOT_TOOLTIP
field_26470
TOOLTIP
f_87924_
private final Supplier<RealmsServer>
x
serverDataProvider
field_19672
serverDataProvider
f_87925_
private final Consumer<Component>
y
toolTipSetter
field_19673
tooltipSetter
f_87926_
private final int
z
slotIndex
field_19675
slotIndex
f_87914_
private int
A
animTick
field_19676
animTick
f_87915_
private RealmsWorldSlotButton$State
B
state
field_19677
state
f_87916_

Constructor summary

ModifierConstructor
public (int x, int y, int width, int height, Supplier<RealmsServer> serverDataProvider, Consumer<Component> tooltipSetter, int id, Button$OnPress action)

Method summary

Modifier and TypeMethod
public RealmsWorldSlotButton$State
a()
getState()
method_25099()
getState()
m_87937_()
public void
b()
tick()
method_37007()
tick()
m_87968_()
private static RealmsWorldSlotButton$Action
a(drq arg0, boolean arg1, boolean arg2)
getAction(RealmsServer arg0, boolean arg1, boolean arg2)
method_27455(class_4877 arg0, boolean arg1, boolean arg2)
getAction(RealmsServer server, boolean active, boolean minigame)
m_87959_(C_3244_ p_87960_, boolean p_87961_, boolean p_87962_)
private com.mojang.datafixers.util.Pair<Component, Component>
a(drq arg0, String arg1, boolean arg2, boolean arg3, dsq$a arg4)
getTooltipAndNarration(RealmsServer arg0, String arg1, boolean arg2, boolean arg3, RealmsWorldSlotButton$Action arg4)
method_27454(class_4877 arg0, String arg1, boolean arg2, boolean arg3, class_4367$class_4368 arg4)
getActionPromptAndMessage(RealmsServer server, String text, boolean empty, boolean minigame, RealmsWorldSlotButton$Action action)
m_87953_(C_3244_ p_87955_, String p_87956_, boolean p_87957_, boolean p_87958_, C_3279_$C_3280_ arg4)
public void
b(dql arg0, int arg1, int arg2, float arg3)
renderButton(PoseStack arg0, int arg1, int arg2, float arg3)
method_25359(class_4587 arg0, int arg1, int arg2, float arg3)
renderButton(MatrixStack arg0, int arg1, int arg2, float arg3)
m_6303_(C_3181_ p_87965_, int p_87966_, int p_87967_, float arg3)
private void
a(dql arg0, int arg1, int arg2, int arg3, int arg4, boolean arg5, String arg6, int arg7, long arg8, String arg9, boolean arg10, boolean arg11, dsq$a arg12, os arg13)
drawSlotFrame(PoseStack arg0, int arg1, int arg2, int arg3, int arg4, boolean arg5, String arg6, int arg7, long arg8, String arg9, boolean arg10, boolean arg11, RealmsWorldSlotButton$Action arg12, Component arg13)
method_21107(class_4587 arg0, int arg1, int arg2, int arg3, int arg4, boolean arg5, String arg6, int arg7, long arg8, String arg9, boolean arg10, boolean arg11, class_4367$class_4368 arg12, class_2561 arg13)
drawSlotFrame(MatrixStack matrices, int x, int y, int mouseX, int mouseY, boolean active, String slotName, int slotIndex, long imageId, String image, boolean empty, boolean minigame, RealmsWorldSlotButton$Action action, Text actionPrompt)
m_87938_(C_3181_ p_87940_, int p_87941_, int p_87942_, int p_87943_, int p_87944_, boolean p_87945_, String p_87946_, int p_87947_, long p_87948_, String p_87950_, boolean p_87951_, boolean p_87952_, C_3279_$C_3280_ arg12, C_4996_ arg13)