Class RaidBossBarEvent
java.lang.Object
net.minecraft.world.BossEvent
net.minecraft.server.level.ServerBossEvent
nokunami.floral_warfare.common.gardenOps.RaidBossBarEvent
public class RaidBossBarEvent
extends net.minecraft.server.level.ServerBossEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.BossEvent
net.minecraft.world.BossEvent.BossBarColor, net.minecraft.world.BossEvent.BossBarOverlay -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected floatprotected intprotected floatprotected intprotected intprotected intprotected intprotected intFields inherited from class net.minecraft.world.BossEvent
color, createWorldFog, darkenScreen, name, overlay, playBossMusic, progress -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPlayer(@NotNull net.minecraft.server.level.ServerPlayer player) floatintgetTime()floatintintintintgetWave()intvoidremovePlayer(@NotNull net.minecraft.server.level.ServerPlayer player) voidsetBeaconHealth(float health) voidsetTime(int i) voidsetTimerPercent(float time) voidsetTotalTime(int i) voidsetTotalWaves(int i) voidsetTotalZombies(int i) voidsetWave(int i) voidsetZombies(int i) voidupdate()Methods inherited from class net.minecraft.server.level.ServerBossEvent
getPlayers, isVisible, removeAllPlayers, setColor, setCreateWorldFog, setDarkenScreen, setName, setOverlay, setPlayBossMusic, setProgress, setVisibleMethods inherited from class net.minecraft.world.BossEvent
getColor, getId, getName, getOverlay, getProgress, shouldCreateWorldFog, shouldDarkenScreen, shouldPlayBossMusic
-
Field Details
-
beaconHealth
protected float beaconHealth -
timerPercent
protected float timerPercent -
time
protected int time -
totalTime
protected int totalTime -
wave
protected int wave -
totalWaves
protected int totalWaves -
zombies
protected int zombies -
totalZombies
protected int totalZombies
-
-
Constructor Details
-
RaidBossBarEvent
public RaidBossBarEvent(net.minecraft.network.chat.Component component)
-
-
Method Details
-
update
public void update() -
getBeaconHealth
public float getBeaconHealth() -
setBeaconHealth
public void setBeaconHealth(float health) -
getTimerPercent
public float getTimerPercent() -
setTimerPercent
public void setTimerPercent(float time) -
getTime
public int getTime() -
setTime
public void setTime(int i) -
getTotalTime
public int getTotalTime() -
setTotalTime
public void setTotalTime(int i) -
getWave
public int getWave() -
setWave
public void setWave(int i) -
getTotalWaves
public int getTotalWaves() -
setTotalWaves
public void setTotalWaves(int i) -
getZombies
public int getZombies() -
setZombies
public void setZombies(int i) -
getTotalZombies
public int getTotalZombies() -
setTotalZombies
public void setTotalZombies(int i) -
addPlayer
public void addPlayer(@NotNull @NotNull net.minecraft.server.level.ServerPlayer player) - Overrides:
addPlayerin classnet.minecraft.server.level.ServerBossEvent
-
removePlayer
public void removePlayer(@NotNull @NotNull net.minecraft.server.level.ServerPlayer player) - Overrides:
removePlayerin classnet.minecraft.server.level.ServerBossEvent
-