类 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 pPlayer) void
addPlayer
(ServerPlayer pPlayer) final Component
int
getMax()
int
getValue()
static CustomBossEvent
load
(CompoundTag pNbt, ResourceLocation pId) void
onPlayerConnect
(ServerPlayer pPlayer) void
onPlayerDisconnect
(ServerPlayer pPlayer) void
void
removePlayer
(ServerPlayer pPlayer) save()
void
setMax
(int pMax) boolean
setPlayers
(Collection<ServerPlayer> pServerPlayerList) void
setValue
(int pValue) 从类继承的方法 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
-
字段详细资料
-
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 pValue) -
setMax
public void setMax(int pMax) -
getDisplayName
-
setPlayers
-
save
-
load
-
onPlayerConnect
-
onPlayerDisconnect
-