public class CustomServerBossInfo extends ServerBossInfo
BossInfo.Color, BossInfo.Overlay| Constructor and Description |
|---|
CustomServerBossInfo(ResourceLocation idIn,
ITextComponent nameIn) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPlayer(ServerPlayerEntity player) |
void |
addPlayer(java.util.UUID player) |
ITextComponent |
getFormattedName() |
ResourceLocation |
getId() |
int |
getMax() |
int |
getValue() |
void |
onPlayerLogin(ServerPlayerEntity player) |
void |
onPlayerLogout(ServerPlayerEntity player) |
static CustomServerBossInfo |
read(CompoundNBT nbt,
ResourceLocation idIn) |
void |
removeAllPlayers() |
void |
removePlayer(ServerPlayerEntity player) |
void |
setMax(int p_201366_1_) |
boolean |
setPlayers(java.util.Collection<ServerPlayerEntity> p_201368_1_) |
void |
setValue(int p_201362_1_) |
CompoundNBT |
write() |
getPlayers, isVisible, setColor, setCreateFog, setDarkenSky, setName, setOverlay, setPercent, setPlayEndBossMusic, setVisiblegetColor, getName, getOverlay, getPercent, getUniqueId, shouldCreateFog, shouldDarkenSky, shouldPlayEndBossMusicpublic CustomServerBossInfo(ResourceLocation idIn, ITextComponent nameIn)
public ResourceLocation getId()
public void addPlayer(ServerPlayerEntity player)
addPlayer in class ServerBossInfopublic void addPlayer(java.util.UUID player)
public void removePlayer(ServerPlayerEntity player)
removePlayer in class ServerBossInfopublic void removeAllPlayers()
removeAllPlayers in class ServerBossInfopublic int getValue()
public int getMax()
public void setValue(int p_201362_1_)
public void setMax(int p_201366_1_)
public final ITextComponent getFormattedName()
public boolean setPlayers(java.util.Collection<ServerPlayerEntity> p_201368_1_)
public CompoundNBT write()
public static CustomServerBossInfo read(CompoundNBT nbt, ResourceLocation idIn)
public void onPlayerLogin(ServerPlayerEntity player)
public void onPlayerLogout(ServerPlayerEntity player)