Package net.minecraft.server
Class CustomServerBossInfo
- java.lang.Object
-
- net.minecraft.world.BossInfo
-
- net.minecraft.world.server.ServerBossInfo
-
- net.minecraft.server.CustomServerBossInfo
-
public class CustomServerBossInfo extends ServerBossInfo
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.world.BossInfo
BossInfo.Color, BossInfo.Overlay
-
-
Field Summary
Fields Modifier and Type Field Description private ResourceLocation
id
private int
max
private java.util.Set<java.util.UUID>
players
private int
value
-
Fields inherited from class net.minecraft.world.BossInfo
color, createWorldFog, darkenScreen, name, overlay, percent, playBossMusic
-
-
Constructor Summary
Constructors Constructor Description CustomServerBossInfo(ResourceLocation p_i48620_1_, ITextComponent p_i48620_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addOfflinePlayer(java.util.UUID p_201372_1_)
void
addPlayer(ServerPlayerEntity p_186760_1_)
ITextComponent
getDisplayName()
int
getMax()
ResourceLocation
getTextId()
int
getValue()
static CustomServerBossInfo
load(CompoundNBT p_201371_0_, ResourceLocation p_201371_1_)
void
onPlayerConnect(ServerPlayerEntity p_201361_1_)
void
onPlayerDisconnect(ServerPlayerEntity p_201363_1_)
void
removeAllPlayers()
void
removePlayer(ServerPlayerEntity p_186761_1_)
CompoundNBT
save()
void
setMax(int p_201366_1_)
boolean
setPlayers(java.util.Collection<ServerPlayerEntity> p_201368_1_)
void
setValue(int p_201362_1_)
-
Methods inherited from class net.minecraft.world.server.ServerBossInfo
getPlayers, isVisible, setColor, setCreateWorldFog, setDarkenScreen, setName, setOverlay, setPercent, setPlayBossMusic, setVisible
-
Methods inherited from class net.minecraft.world.BossInfo
getColor, getId, getName, getOverlay, getPercent, shouldCreateWorldFog, shouldDarkenScreen, shouldPlayBossMusic
-
-
-
-
Field Detail
-
id
private final ResourceLocation id
-
players
private final java.util.Set<java.util.UUID> players
-
value
private int value
-
max
private int max
-
-
Constructor Detail
-
CustomServerBossInfo
public CustomServerBossInfo(ResourceLocation p_i48620_1_, ITextComponent p_i48620_2_)
-
-
Method Detail
-
getTextId
public ResourceLocation getTextId()
-
addPlayer
public void addPlayer(ServerPlayerEntity p_186760_1_)
- Overrides:
addPlayer
in classServerBossInfo
-
addOfflinePlayer
public void addOfflinePlayer(java.util.UUID p_201372_1_)
-
removePlayer
public void removePlayer(ServerPlayerEntity p_186761_1_)
- Overrides:
removePlayer
in classServerBossInfo
-
removeAllPlayers
public void removeAllPlayers()
- Overrides:
removeAllPlayers
in classServerBossInfo
-
getValue
public int getValue()
-
getMax
public int getMax()
-
setValue
public void setValue(int p_201362_1_)
-
setMax
public void setMax(int p_201366_1_)
-
getDisplayName
public final ITextComponent getDisplayName()
-
setPlayers
public boolean setPlayers(java.util.Collection<ServerPlayerEntity> p_201368_1_)
-
save
public CompoundNBT save()
-
load
public static CustomServerBossInfo load(CompoundNBT p_201371_0_, ResourceLocation p_201371_1_)
-
onPlayerConnect
public void onPlayerConnect(ServerPlayerEntity p_201361_1_)
-
onPlayerDisconnect
public void onPlayerDisconnect(ServerPlayerEntity p_201363_1_)
-
-