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
FieldsFields inherited from class net.minecraft.world.BossInfo
color, createWorldFog, darkenScreen, name, overlay, percent, playBossMusic -
Constructor Summary
ConstructorsConstructorDescriptionCustomServerBossInfo(ResourceLocation p_i48620_1_, ITextComponent p_i48620_2_) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOfflinePlayer(UUID p_201372_1_) voidaddPlayer(ServerPlayerEntity p_186760_1_) final ITextComponentintgetMax()intgetValue()static CustomServerBossInfoload(CompoundNBT p_201371_0_, ResourceLocation p_201371_1_) voidonPlayerConnect(ServerPlayerEntity p_201361_1_) voidonPlayerDisconnect(ServerPlayerEntity p_201363_1_) voidvoidremovePlayer(ServerPlayerEntity p_186761_1_) save()voidsetMax(int p_201366_1_) booleansetPlayers(Collection<ServerPlayerEntity> p_201368_1_) voidsetValue(int p_201362_1_) Methods inherited from class net.minecraft.world.server.ServerBossInfo
getPlayers, isVisible, setColor, setCreateWorldFog, setDarkenScreen, setName, setOverlay, setPercent, setPlayBossMusic, setVisibleMethods 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:
addPlayerin classServerBossInfo
-
addOfflinePlayer
-
removePlayer
- Overrides:
removePlayerin classServerBossInfo
-
removeAllPlayers
public void removeAllPlayers()- Overrides:
removeAllPlayersin 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
-