CustomTreasureChestConfigFields

Constructors

Link copied to clipboard
public void CustomTreasureChestConfigFields(String filename, boolean isEnabled)
public void CustomTreasureChestConfigFields(String fileName, boolean isEnabled, Material chestMaterial, BlockFace facing, int chestTier, Location location, TreasureChest.DropStyle dropStyle, int restockTimer, List<Object> lootList, double mimicChance, List<String> mimicCustomBossesList, long restockTime, List<String> restockTimers, List<String> effects)
Called to write defaults for a new Custom Boss Mob Entity

Properties

Link copied to clipboard
public Material chestMaterial
Link copied to clipboard
public int chestTier
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public List<String> effects
Link copied to clipboard
public BlockFace facing
Link copied to clipboard
public Location location
Link copied to clipboard
public List<String> locationsString
Link copied to clipboard
public String locationString
Link copied to clipboard
public List<Object> lootList
Link copied to clipboard
public double mimicChance
Link copied to clipboard
public List<String> mimicCustomBossesList
Link copied to clipboard
public long restockTime
Link copied to clipboard
public int restockTimer
Link copied to clipboard
public List<String> restockTimers
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 TreasureChest addTreasureChest(Location chestInstanceLocation, long unixTimeStamp)
For the new format of Treasure chests, which have multiple locations per file
Link copied to clipboard
public Material getChestMaterial()
Link copied to clipboard
public int getChestTier()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public List<String> getEffects()
Link copied to clipboard
public BlockFace getFacing()
Link copied to clipboard
public Location getLocation()
Link copied to clipboard
public List<String> getLocationsString()
Link copied to clipboard
public String getLocationString()
Link copied to clipboard
public List<Object> getLootList()
Link copied to clipboard
public double getMimicChance()
Link copied to clipboard
public List<String> getMimicCustomBossesList()
Link copied to clipboard
public long getRestockTime()
Link copied to clipboard
public int getRestockTimer()
Link copied to clipboard
public List<String> getRestockTimers()
Link copied to clipboard
public String getWorldName()
Link copied to clipboard
public boolean isInstanced()
Link copied to clipboard
public void processConfigFields()
Link copied to clipboard
public void purgeLocations()
Link copied to clipboard
public void setInstanced(boolean instanced)
Link copied to clipboard
public void setRestockTime(Location location, long newRestockTime)

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()
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 abstract void processConfigFields()
Link copied to clipboard
public ConfigurationSection processConfigurationSection(String path, Map<String, Object> value)
Registers the translatable text inside a configuration section and hands back a section carrying the translated values.
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)
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)
Link copied to clipboard
protected String translatable(String filename, String key, String value)
Registers a translatable value with the translation system and returns the display-ready value for the configured language.
protected List<String> translatable(String filename, String key, List<String> value)
List counterpart of translatable.