类 CustomBossEvent
java.lang.Object
net.minecraft.world.BossEvent
net.minecraft.server.level.ServerBossEvent
net.minecraft.server.bossevents.CustomBossEvent
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 net.minecraft.world.BossEvent
BossEvent.BossBarColor, BossEvent.BossBarOverlay
-
字段概要
字段从类继承的字段 net.minecraft.world.BossEvent
color, createWorldFog, darkenScreen, name, overlay, playBossMusic, progress
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
addOfflinePlayer
(UUID p_136271_) void
addPlayer
(ServerPlayer p_136267_) final Component
int
getMax()
int
getValue()
static CustomBossEvent
load
(ResourceLocation p_136274_, CustomBossEvent.Packed p_405765_) void
onPlayerConnect
(ServerPlayer p_136284_) void
onPlayerDisconnect
(ServerPlayer p_136287_) pack()
void
void
removePlayer
(ServerPlayer p_136281_) void
setMax
(int p_136279_) boolean
setPlayers
(Collection<ServerPlayer> p_136269_) void
setValue
(int p_136265_) 从类继承的方法 net.minecraft.server.level.ServerBossEvent
getPlayers, isVisible, setColor, setCreateWorldFog, setDarkenScreen, setName, setOverlay, setPlayBossMusic, setProgress, setVisible
从类继承的方法 net.minecraft.world.BossEvent
getColor, getId, getName, getOverlay, getProgress, shouldCreateWorldFog, shouldDarkenScreen, shouldPlayBossMusic
-
字段详细资料
-
DEFAULT_MAX
private static final int DEFAULT_MAX- 另请参阅:
-
id
-
players
-
value
private int value -
max
private int max
-
-
构造器详细资料
-
CustomBossEvent
-
-
方法详细资料
-
getTextId
-
addPlayer
- 覆盖:
addPlayer
在类中ServerBossEvent
-
addOfflinePlayer
-
removePlayer
- 覆盖:
removePlayer
在类中ServerBossEvent
-
removeAllPlayers
public void removeAllPlayers()- 覆盖:
removeAllPlayers
在类中ServerBossEvent
-
getValue
public int getValue() -
getMax
public int getMax() -
setValue
public void setValue(int p_136265_) -
setMax
public void setMax(int p_136279_) -
getDisplayName
-
setPlayers
-
load
-
pack
-
onPlayerConnect
-
onPlayerDisconnect
-