Class PlayerMenuObject
- java.lang.Object
-
- net.minecraft.client.gui.spectator.PlayerMenuObject
-
- All Implemented Interfaces:
ISpectatorMenuObject
public class PlayerMenuObject extends java.lang.Object implements ISpectatorMenuObject
-
-
Field Summary
Fields Modifier and Type Field Description private ResourceLocation
location
private StringTextComponent
name
private com.mojang.authlib.GameProfile
profile
-
Constructor Summary
Constructors Constructor Description PlayerMenuObject(com.mojang.authlib.GameProfile p_i45498_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ITextComponent
getName()
boolean
isEnabled()
void
renderIcon(MatrixStack p_230485_1_, float p_230485_2_, int p_230485_3_)
void
selectItem(SpectatorMenu p_178661_1_)
-
-
-
Field Detail
-
profile
private final com.mojang.authlib.GameProfile profile
-
location
private final ResourceLocation location
-
name
private final StringTextComponent name
-
-
Method Detail
-
selectItem
public void selectItem(SpectatorMenu p_178661_1_)
- Specified by:
selectItem
in interfaceISpectatorMenuObject
-
getName
public ITextComponent getName()
- Specified by:
getName
in interfaceISpectatorMenuObject
-
renderIcon
public void renderIcon(MatrixStack p_230485_1_, float p_230485_2_, int p_230485_3_)
- Specified by:
renderIcon
in interfaceISpectatorMenuObject
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interfaceISpectatorMenuObject
-
-