Dieser Commit ist enthalten in:
Ursprung
9fee882663
Commit
47665f9613
@ -46,6 +46,7 @@ public class Meteor implements Listener {
|
||||
@EventHandler
|
||||
public void explode(ProjectileHitEvent event) {
|
||||
if (event.getEntity() instanceof Fireball) {
|
||||
System.out.println("explode");
|
||||
event.getEntity().getWorld().createExplosion(event.getEntity().getLocation(), current.explosionSize);
|
||||
}
|
||||
}
|
||||
@ -130,11 +131,11 @@ public class Meteor implements Listener {
|
||||
private enum State {
|
||||
|
||||
PRE(60, 80, 1, 0),
|
||||
FIRST(40, 60, 3, 1),
|
||||
SECOND(30, 40, 4, 2),
|
||||
THIRD(20, 30, 4, 3),
|
||||
FOURTH(10, 20, 5, 4),
|
||||
LAST(5, 10, 0, 5);
|
||||
FIRST(40, 60, 3, 4),
|
||||
SECOND(30, 40, 4, 8),
|
||||
THIRD(20, 30, 4, 12),
|
||||
FOURTH(10, 20, 5, 16),
|
||||
LAST(5, 10, 0, 20);
|
||||
|
||||
|
||||
State(int minTime, int maxTime, int switchAfter, int explosionSize) {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren