com.mojang.realmsclient.gui

public class RealmsWorldSlotButton

extends Button

All mapped superinterfaces:

Renderable, GuiEventListener, TabOrderedElement, LayoutElement, NarratableEntry, NarrationSupplier

eny
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
private static final ResourceLocation
s
SLOT_FRAME_SPRITE
field_22681
SLOT_FRAME
f_291227_
private static final ResourceLocation
t
CHECKMARK_SPRITE
field_39067
CHECKMARK
f_291357_
public static final ResourceLocation
a
EMPTY_SLOT_LOCATION
field_22682
EMPTY_FRAME
f_87918_
public static final ResourceLocation
b
DEFAULT_WORLD_SLOT_1
field_22683
PANORAMA_0
f_87919_
public static final ResourceLocation
c
DEFAULT_WORLD_SLOT_2
field_22684
PANORAMA_2
f_87920_
public static final ResourceLocation
d
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 static final Component
x
MINIGAME
field_44894
MINIGAME_SLOT_NAME
f_286987_
private final Supplier<RealmsServer>
y
serverDataProvider
field_19672
serverDataProvider
f_87925_
private final Consumer<Component>
z
toolTipSetter
field_19673
tooltipSetter
f_87926_
private final int
A
slotIndex
field_19675
slotIndex
f_87914_
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(emw 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(emw arg0, String arg1, boolean arg2, boolean arg3, eny$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(esf arg0, int arg1, int arg2, float arg3)
renderWidget(GuiGraphics arg0, int arg1, int arg2, float arg3)
method_48579(class_332 arg0, int arg1, int arg2, float arg3)
renderButton(DrawContext arg0, int arg1, int arg2, float arg3)
m_87963_(C_279497_ p_87965_, int p_87966_, int p_87967_, float arg3)
private void
a(esf arg0, int arg1, int arg2, int arg3, int arg4, boolean arg5, String arg6, int arg7, long arg8, String arg9, boolean arg10, boolean arg11, eny$a arg12, tl arg13)
drawSlotFrame(GuiGraphics 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_332 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(DrawContext context, 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_280493_(C_279497_ p_282407_, int p_283212_, int p_283646_, int p_283633_, int p_282019_, boolean p_283553_, String p_283521_, int p_281546_, long p_283361_, String p_281611_, boolean p_281804_, boolean p_282910_, C_3279_$C_3280_ arg12, C_4996_ arg13)
private void
a(esf arg0, int arg1, int arg2)
renderCheckMark(GuiGraphics arg0, int arg1, int arg2)
method_43586(class_332 arg0, int arg1, int arg2)
drawCheckmark(DrawContext context, int x, int y)
m_280498_(C_279497_ p_281849_, int p_283407_, int arg2)