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