Class PlayerEntry
java.lang.Object
net.minecraft.client.gui.components.AbstractSelectionList.Entry<E>
net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry<PlayerEntry>
net.minecraft.client.gui.screens.social.PlayerEntry
- All Implemented Interfaces:
ContainerEventHandler,GuiEventListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intstatic intprivate static Componentprivate static Componentprivate static intprivate static intprivate static intprivate List<AbstractWidget>private static Componentprivate static Componentprivate Button(package private) Component(package private) List<FormattedCharSequence>private UUIDprivate booleanprivate Minecraftprivate static Componentprivate static intstatic intprivate Stringstatic intprivate Button(package private) Component(package private) List<FormattedCharSequence>static intprivate static intprivate Supplier<ResourceLocation>private static intprivate static int(package private) floatFields inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
list -
Constructor Summary
ConstructorsConstructorDescriptionPlayerEntry(Minecraft p_100552_, SocialInteractionsScreen p_100553_, UUID p_100554_, String p_100555_, Supplier<ResourceLocation> p_100556_) -
Method Summary
Modifier and TypeMethodDescriptionList<? extends GuiEventListener>children()(package private) MutableComponentgetEntryNarationMessage(MutableComponent p_100595_)private ComponentList<? extends NarratableEntry>private voidonHiddenOrShown(boolean p_100597_, Component p_100598_)(package private) static voidpostRenderTooltip(SocialInteractionsScreen p_100589_, PoseStack p_100590_, List<FormattedCharSequence> p_100591_, int p_100592_, int p_100593_)voidrender(PoseStack p_100558_, int p_100559_, int p_100560_, int p_100561_, int p_100562_, int p_100563_, int p_100564_, int p_100565_, boolean p_100566_, float p_100567_)voidsetRemoved(boolean p_100620_)Methods inherited from class net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
isMouseOverMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
changeFocus, charTyped, getChildAt, keyPressed, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocusMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
isMouseOver, mouseMoved
-
Field Details
-
TOOLTIP_DELAY
private static final int TOOLTIP_DELAY- See Also:
- Constant Field Values
-
TOOLTIP_MAX_WIDTH
private static final int TOOLTIP_MAX_WIDTH- See Also:
- Constant Field Values
-
minecraft
-
children
-
id
-
playerName
-
skinGetter
-
isRemoved
private boolean isRemoved -
hideButton
-
showButton
-
hideText
-
showText
-
hideTooltip
-
showTooltip
-
tooltipHoverTime
float tooltipHoverTime -
HIDDEN
-
BLOCKED
-
OFFLINE
-
HIDDEN_OFFLINE
-
BLOCKED_OFFLINE
-
SKIN_SIZE
private static final int SKIN_SIZE- See Also:
- Constant Field Values
-
PADDING
private static final int PADDING- See Also:
- Constant Field Values
-
CHAT_TOGGLE_ICON_SIZE
private static final int CHAT_TOGGLE_ICON_SIZE- See Also:
- Constant Field Values
-
CHAT_TOGGLE_ICON_X
private static final int CHAT_TOGGLE_ICON_X- See Also:
- Constant Field Values
-
CHAT_TOGGLE_ICON_Y
private static final int CHAT_TOGGLE_ICON_Y- See Also:
- Constant Field Values
-
SKIN_SHADE
public static final int SKIN_SHADE -
BG_FILL
public static final int BG_FILL -
BG_FILL_REMOVED
public static final int BG_FILL_REMOVED -
PLAYERNAME_COLOR
public static final int PLAYERNAME_COLOR -
PLAYER_STATUS_COLOR
public static final int PLAYER_STATUS_COLOR
-
-
Constructor Details
-
PlayerEntry
public PlayerEntry(Minecraft p_100552_, SocialInteractionsScreen p_100553_, UUID p_100554_, String p_100555_, Supplier<ResourceLocation> p_100556_)
-
-
Method Details
-
render
public void render(PoseStack p_100558_, int p_100559_, int p_100560_, int p_100561_, int p_100562_, int p_100563_, int p_100564_, int p_100565_, boolean p_100566_, float p_100567_)- Specified by:
renderin classAbstractSelectionList.Entry<PlayerEntry>
-
children
-
narratables
- Specified by:
narratablesin classContainerObjectSelectionList.Entry<PlayerEntry>
-
getPlayerName
-
getPlayerId
-
setRemoved
public void setRemoved(boolean p_100620_) -
onHiddenOrShown
-
getEntryNarationMessage
-
getStatusComponent
-
postRenderTooltip
static void postRenderTooltip(SocialInteractionsScreen p_100589_, PoseStack p_100590_, List<FormattedCharSequence> p_100591_, int p_100592_, int p_100593_)
-