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 ISpectatorMenuObject
public ITextComponent getSpectatorName()
getSpectatorName
in interface ISpectatorMenuObject
public void renderIcon(float brightness, int alpha)
renderIcon
in interface ISpectatorMenuObject
public boolean isEnabled()
isEnabled
in interface ISpectatorMenuObject