public class PlayerMenuObject extends java.lang.Object implements ISpectatorMenuObject
| Modifier and Type | Field and Description |
|---|---|
private com.mojang.authlib.GameProfile |
profile |
private ResourceLocation |
resourceLocation |
| Constructor and Description |
|---|
PlayerMenuObject(com.mojang.authlib.GameProfile profileIn) |
| Modifier and Type | Method and Description |
|---|---|
ITextComponent |
getSpectatorName() |
boolean |
isEnabled() |
void |
renderIcon(float brightness,
int alpha) |
void |
selectItem(SpectatorMenu menu) |
private final com.mojang.authlib.GameProfile profile
private final ResourceLocation resourceLocation
public PlayerMenuObject(com.mojang.authlib.GameProfile profileIn)
public void selectItem(SpectatorMenu menu)
selectItem in interface ISpectatorMenuObjectpublic ITextComponent getSpectatorName()
getSpectatorName in interface ISpectatorMenuObjectpublic void renderIcon(float brightness,
int alpha)
renderIcon in interface ISpectatorMenuObjectpublic boolean isEnabled()
isEnabled in interface ISpectatorMenuObject