tower-generator #6
@ -58,6 +58,7 @@ public class WorldConfig {
|
||||
public static final TowerGeneratorConfig TOWER_GENERATOR_CONFIG;
|
||||
|
||||
public static final List<WinCondition> WINCONDITIONS = new ArrayList<>();
|
||||
|
||||
static {
|
||||
WINCONDITIONS.add(new LastRemainingWincondition());
|
||||
WINCONDITIONS.add(new LastOutsideWincondition());
|
||||
|
@ -38,9 +38,13 @@ public abstract class Countdown extends GameStateToggleListener {
|
||||
super(enabledStates);
|
||||
}
|
||||
|
||||
int defaultTime() {return 0;}
|
||||
int defaultTime() {
|
||||
return 0;
|
||||
}
|
||||
void timerEnd() {}
|
||||
boolean timerShouldCancel() {return true;}
|
||||
boolean timerShouldCancel() {
|
||||
return true;
|
||||
}
|
||||
void run() {}
|
||||
void timerStart() {}
|
||||
void timerReset() {}
|
||||
|
@ -32,7 +32,7 @@ public class EndCountdown extends Countdown {
|
||||
|
||||
private final LobbyCountdown lobbyCountdown;
|
||||
|
||||
private static boolean RESETS = Objects.requireNonNull(Bukkit.getWorlds().get(0).getWorldFolder().list((dir, name) -> name.equals("backup"))).length > 0;
|
||||
private static final boolean RESETS = Objects.requireNonNull(Bukkit.getWorlds().get(0).getWorldFolder().list((dir, name) -> name.equals("backup"))).length > 0;
|
||||
|
||||
public EndCountdown(LobbyCountdown lobbyCountdown) {
|
||||
super(EnumSet.of(GameStates.ENDING));
|
||||
|
@ -31,8 +31,8 @@ public class TowerGenerator {
|
||||
|
||||
private static final Random random = new Random();
|
||||
private final WorldConfig.TowerGeneratorConfig config;
|
||||
private List<SchematicNode> allSchematics;
|
||||
private Clipboard roof;
|
||||
private final List<SchematicNode> allSchematics;
|
||||
private final Clipboard roof;
|
||||
|
||||
@Getter
|
||||
private int height;
|
||||
|
@ -48,7 +48,7 @@ import java.util.*;
|
||||
public class IngameListener extends GameStateBukkitListener {
|
||||
|
||||
private int time = 0;
|
||||
private Map<Integer, List<Block>> blocksToMelt = new HashMap<>();
|
||||
private final Map<Integer, List<Block>> blocksToMelt = new HashMap<>();
|
||||
private BukkitRunnable runnable;
|
||||
|
||||
public IngameListener() {
|
||||
|
@ -34,6 +34,7 @@ public abstract class GameStateToggleListener extends GameStateListener {
|
||||
}
|
||||
|
||||
public abstract void enable();
|
||||
|
||||
public abstract void disable();
|
||||
|
||||
@Override
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren