Package net.minecraft.client.gui.hud
Class ClientBossBar
java.lang.Object
net.minecraft.entity.boss.BossBar
net.minecraft.client.gui.hud.ClientBossBar
@Environment(CLIENT) public class ClientBossBar extends BossBar
- Mappings:
Namespace Name official dse
intermediary net/minecraft/class_345
named net/minecraft/client/gui/hud/ClientBossBar
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.boss.BossBar
BossBar.Color, BossBar.Style
-
Field Summary
Fields Modifier and Type Field Description protected float
healthLatest
protected long
timeHealthSet
Fields inherited from class net.minecraft.entity.boss.BossBar
color, darkenSky, dragonMusic, name, percent, style, thickenFog
-
Constructor Summary
Constructors Constructor Description ClientBossBar(BossBarS2CPacket packet)
-
Method Summary
Modifier and Type Method Description float
getPercent()
void
handlePacket(BossBarS2CPacket packet)
void
setPercent(float percentage)
Methods inherited from class net.minecraft.entity.boss.BossBar
getColor, getName, getOverlay, getUuid, hasDragonMusic, setColor, setDarkenSky, setDragonMusic, setName, setOverlay, setThickenFog, shouldDarkenSky, shouldThickenFog
-
Field Details
-
healthLatest
protected float healthLatest- Mappings:
Namespace Name Mixin selector official h
Ldse;h:F
intermediary field_2129
Lnet/minecraft/class_345;field_2129:F
named healthLatest
Lnet/minecraft/client/gui/hud/ClientBossBar;healthLatest:F
-
timeHealthSet
protected long timeHealthSet- Mappings:
Namespace Name Mixin selector official i
Ldse;i:J
intermediary field_2128
Lnet/minecraft/class_345;field_2128:J
named timeHealthSet
Lnet/minecraft/client/gui/hud/ClientBossBar;timeHealthSet:J
-
-
Constructor Details
-
ClientBossBar
- Mappings:
Namespace Name Mixin selector official <init>
Ldse;<init>(Lpr;)V
intermediary <init>
Lnet/minecraft/class_345;<init>(Lnet/minecraft/class_2629;)V
named <init>
Lnet/minecraft/client/gui/hud/ClientBossBar;<init>(Lnet/minecraft/network/packet/s2c/play/BossBarS2CPacket;)V
-
-
Method Details
-
setPercent
public void setPercent(float percentage)- Overrides:
setPercent
in classBossBar
- Mappings:
Namespace Name Mixin selector official a
Lapg;a(F)V
intermediary method_5408
Lnet/minecraft/class_1259;method_5408(F)V
named setPercent
Lnet/minecraft/entity/boss/BossBar;setPercent(F)V
-
getPercent
public float getPercent()- Overrides:
getPercent
in classBossBar
- Mappings:
Namespace Name Mixin selector official k
Lapg;k()F
intermediary method_5412
Lnet/minecraft/class_1259;method_5412()F
named getPercent
Lnet/minecraft/entity/boss/BossBar;getPercent()F
-
handlePacket
- Mappings:
Namespace Name Mixin selector official a
Ldse;a(Lpr;)V
intermediary method_1894
Lnet/minecraft/class_345;method_1894(Lnet/minecraft/class_2629;)V
named handlePacket
Lnet/minecraft/client/gui/hud/ClientBossBar;handlePacket(Lnet/minecraft/network/packet/s2c/play/BossBarS2CPacket;)V
-