LevelsConfigFields

Constructors

Link copied to clipboard
public void LevelsConfigFields(String filename, boolean isEnabled, String levelName, String worldName, List<String> startLocation, List<String> endLocation, String waveConfigFile)
public void LevelsConfigFields(String filename, boolean isEnabled)

Properties

Link copied to clipboard
public List<String> endLocation
Link copied to clipboard
public World.Environment environment
Link copied to clipboard
public String highscorePlayerName
Link copied to clipboard
public int highscoreWave
Link copied to clipboard
public List<String> levelDescription
Link copied to clipboard
public List<String> levelLocations
Link copied to clipboard
public String levelName
Link copied to clipboard
public List<String> startLocation
Link copied to clipboard
public String waveConfigFile
Link copied to clipboard
Link copied to clipboard
public String worldName

Inherited properties

Link copied to clipboard
protected File file
Link copied to clipboard
protected FileConfiguration fileConfiguration
Link copied to clipboard
protected String filename
Link copied to clipboard
protected boolean isEnabled
Link copied to clipboard
public FileConfiguration writableFileConfiguration

Functions

Link copied to clipboard
public boolean addLevelEndLocation(Player player)
Remember to select the floor, not the air above the floor!
Link copied to clipboard
public boolean addLevelLocations(FloorSelections floorSelections, Player player)
Remember to select the floor, not the air above the floor!
Link copied to clipboard
public boolean addLevelStartLocation(Player player)
Remember to select the floor, not the air above the floor!
Link copied to clipboard
public boolean checkHighscore(Player player, int wave)
Link copied to clipboard
public boolean checkLocations(FloorSelections floorSelections, Player player)
Remember to select the floor, not the air above the floor!
Link copied to clipboard
public List<String> getEndLocation()
Link copied to clipboard
public World.Environment getEnvironment()
Link copied to clipboard
public String getHighscorePlayerName()
Link copied to clipboard
public int getHighscoreWave()
Link copied to clipboard
public List<String> getLevelDescription()
Link copied to clipboard
public List<String> getLevelLocations()
Link copied to clipboard
public String getLevelName()
Link copied to clipboard
public List<String> getStartLocation()
Link copied to clipboard
public String getWaveConfigFile()
Link copied to clipboard
Link copied to clipboard
public String getWorldName()
Link copied to clipboard
public void processConfigFields()
Link copied to clipboard
public void setLevelDescription(List<String> levelDescription)
Link copied to clipboard
public void setLevelLocations(List<String> levelLocations)

Inherited functions

Link copied to clipboard
protected boolean configHas(String configKey)
Link copied to clipboard
public File getFile()
Link copied to clipboard
public FileConfiguration getFileConfiguration()
Link copied to clipboard
public String getFilename()
Link copied to clipboard
public FileConfiguration getWritableFileConfiguration()
Link copied to clipboard
public boolean isEnabled()
Link copied to clipboard
protected boolean processBoolean(String path, boolean value, boolean pluginDefault, boolean forceWriteDefault)
Link copied to clipboard
public ConfigurationSection processConfigurationSection(String path, Map<String, Object> value)
Link copied to clipboard
protected double processDouble(String path, double value, double pluginDefault, boolean forceWriteDefault)
protected Double processDouble(String path, Double value, Double pluginDefault, boolean forceWriteDefault)
Link copied to clipboard
public T processEnum<T extends Enum<T>>(String path, T value, T pluginDefault, Class<T> enumClass, boolean forceWriteDefault)
Link copied to clipboard
protected List<T> processEnumList<T extends Enum<T>>(String path, List<T> value, List<T> pluginDefault, Class<T> enumClass, boolean forceWriteDefault)
Link copied to clipboard
protected int processInt(String path, int value, int pluginDefault, boolean forceWriteDefault)
Link copied to clipboard
public ItemStack processItemStack(String path, ItemStack value, ItemStack pluginDefault, boolean forceWriteDefault)
Link copied to clipboard
public List<Object> processList(String path, List<Object> value, List<Object> pluginDefault, boolean forceWriteDefault)
Link copied to clipboard
protected Location processLocation(String path, Location value, String pluginDefault, boolean forceWriteDefault)
Link copied to clipboard
protected long processLong(String path, long value, long pluginDefault, boolean forceWriteDefault)
Link copied to clipboard
public Map<String, Object> processMap(String path, Map<String, Object> value)
Link copied to clipboard
public Map<String, Object> processMapWithKey(String path, Map<String, Object> value)
Link copied to clipboard
protected String processString(String path, String value, String pluginDefault, boolean forceWriteDefault)
Link copied to clipboard
public List<String> processStringList(String path, List<String> value, List<String> pluginDefault, boolean forceWriteDefault)
Link copied to clipboard
protected Vector processVector(String path, Vector value, Vector pluginDefault, boolean forceWriteDefault)
Link copied to clipboard
protected List<World> processWorldList(String path, List<World> value, List<World> pluginDefault, boolean forceWriteDefault)
Link copied to clipboard
public void setEnabled(boolean isEnabled)
Link copied to clipboard
public CompletableFuture<Void> setEnabledAndSave(boolean enabled)
Link copied to clipboard
public void setFile(File file)
Link copied to clipboard
public void setFileConfiguration(FileConfiguration fileConfiguration)