public class CustomServerBossInfo extends ServerBossInfo
BossInfo.Color, BossInfo.Overlay| Modifier and Type | Field and Description |
|---|---|
private ResourceLocation |
id |
private int |
max |
private java.util.Set<java.util.UUID> |
players |
private int |
value |
| 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, shouldPlayEndBossMusicprivate final ResourceLocation id
private final java.util.Set<java.util.UUID> players
private int value
private int max
public 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)