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 ResourceLocationidprivate intmaxprivate java.util.Set<java.util.UUID>playersprivate intvalue-
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 voidaddOfflinePlayer(java.util.UUID p_201372_1_)voidaddPlayer(ServerPlayerEntity p_186760_1_)ITextComponentgetDisplayName()intgetMax()ResourceLocationgetTextId()intgetValue()static CustomServerBossInfoload(CompoundNBT p_201371_0_, ResourceLocation p_201371_1_)voidonPlayerConnect(ServerPlayerEntity p_201361_1_)voidonPlayerDisconnect(ServerPlayerEntity p_201363_1_)voidremoveAllPlayers()voidremovePlayer(ServerPlayerEntity p_186761_1_)CompoundNBTsave()voidsetMax(int p_201366_1_)booleansetPlayers(java.util.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, 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:
addPlayerin classServerBossInfo
-
addOfflinePlayer
public void addOfflinePlayer(java.util.UUID p_201372_1_)
-
removePlayer
public void removePlayer(ServerPlayerEntity p_186761_1_)
- 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
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_)
-
-