Package net.minecraft.server
Class CustomServerBossInfo
java.lang.Object
net.minecraft.world.BossInfo
net.minecraft.world.server.ServerBossInfo
net.minecraft.server.CustomServerBossInfo
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.BossInfo
BossInfo.Color, BossInfo.Overlay
-
Field Summary
Fields inherited from class net.minecraft.world.BossInfo
color, createWorldFog, darkenScreen, name, overlay, percent, playBossMusic
-
Constructor Summary
ConstructorDescriptionCustomServerBossInfo
(ResourceLocation p_i48620_1_, ITextComponent p_i48620_2_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addOfflinePlayer
(UUID p_201372_1_) void
addPlayer
(ServerPlayerEntity p_186760_1_) final ITextComponent
int
getMax()
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
void
removePlayer
(ServerPlayerEntity p_186761_1_) save()
void
setMax
(int p_201366_1_) boolean
setPlayers
(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 Details
-
id
-
players
-
value
private int value -
max
private int max
-
-
Constructor Details
-
CustomServerBossInfo
-
-
Method Details
-
getTextId
-
addPlayer
- Overrides:
addPlayer
in classServerBossInfo
-
addOfflinePlayer
-
removePlayer
- 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
-
setPlayers
-
save
-
load
-
onPlayerConnect
-
onPlayerDisconnect
-