public class CustomServerBossInfo extends ServerBossInfo
BossInfo.Color, BossInfo.Overlay
コンストラクタと説明 |
---|
CustomServerBossInfo(ResourceLocation idIn,
ITextComponent nameIn) |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
addPlayer(ServerPlayerEntity player)
Makes the boss visible to the given 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)
Makes the boss non-visible to the given 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, setVisible
getColor, getName, getOverlay, getPercent, getUniqueId, shouldCreateFog, shouldDarkenSky, shouldPlayEndBossMusic
public CustomServerBossInfo(ResourceLocation idIn, ITextComponent nameIn)
public ResourceLocation getId()
public void addPlayer(ServerPlayerEntity player)
addPlayer
クラス内 ServerBossInfo
public void addPlayer(java.util.UUID player)
public void removePlayer(ServerPlayerEntity player)
removePlayer
クラス内 ServerBossInfo
public void removeAllPlayers()
removeAllPlayers
クラス内 ServerBossInfo
public 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)