mirror of
https://github.com/darverdevs/BossBarAPI.git
synced 2024-12-21 14:54:11 -08:00
compiled latest comrecmit
This commit is contained in:
parent
72898022a0
commit
940d02ed7f
|
@ -22,11 +22,11 @@ public class BossBar {
|
|||
return dragonLocation;
|
||||
}
|
||||
|
||||
public int getBarHealth() {
|
||||
public int getHealth() {
|
||||
return bossHealth;
|
||||
}
|
||||
|
||||
public void setBarHealth(int bossHealth) {
|
||||
public void setHealth(int bossHealth) {
|
||||
this.bossHealth = bossHealth;
|
||||
if (dragon != null) {
|
||||
dragon.setHealth(bossHealth);
|
||||
|
@ -44,7 +44,7 @@ public class BossBar {
|
|||
}
|
||||
}
|
||||
|
||||
public void spawn() {
|
||||
public void display() {
|
||||
if (dragon != null) {
|
||||
dragon.destroy();
|
||||
}
|
||||
|
|
|
@ -28,9 +28,9 @@ public class FakeWitherCommand implements CommandExecutor {
|
|||
@Override
|
||||
public void run() {
|
||||
// Count down
|
||||
bar.setBarHealth(bar.getBarHealth() - 1);
|
||||
bar.setHealth(bar.getHealth() - 1);
|
||||
|
||||
if (bar.getBarHealth() <= 0) {
|
||||
if (bar.getHealth() <= 0) {
|
||||
bar.delete();
|
||||
task.cancel();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user