public class Randomizable extends AbstractModule
Modifier and Type | Field and Description |
---|---|
private java.util.Map<Zone,java.lang.Double> |
_probabilities |
private static double |
DEFAULT |
Constructor and Description |
---|
Randomizable() |
Modifier and Type | Method and Description |
---|---|
void |
deserialize(org.bukkit.configuration.ConfigurationSection configurationSection) |
java.lang.String |
getDescription(Zone zone) |
double |
getProbability(Zone zone) |
boolean |
randomize(Zone zone) |
void |
serialize(org.bukkit.configuration.ConfigurationSection configurationSection) |
void |
setProbability(Zone zone,
double probability) |
getType
private static final double DEFAULT
private final java.util.Map<Zone,java.lang.Double> _probabilities
public java.lang.String getDescription(Zone zone)
getDescription
in class AbstractModule
public boolean randomize(Zone zone)
public void setProbability(Zone zone, double probability)
public double getProbability(Zone zone)
public void serialize(org.bukkit.configuration.ConfigurationSection configurationSection)
serialize
in class AbstractModule
public void deserialize(org.bukkit.configuration.ConfigurationSection configurationSection)
deserialize
in class AbstractModule