public final class Replacement
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private org.bukkit.entity.EntityType |
_from
The EntityType to be replaced.
|
private double |
_probability
The probability of this replacement occurring.
|
private org.bukkit.entity.EntityType |
_to
The replacement EntityType.
|
| Constructor and Description |
|---|
Replacement(org.bukkit.entity.EntityType from,
org.bukkit.entity.EntityType to,
double probability)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.bukkit.entity.EntityType |
getFrom()
Returns the
EntityType to be replaced. |
double |
getProbability()
Returns the probability of this replacement occurring.
|
org.bukkit.entity.EntityType |
getTo()
Returns the replacement
EntityType. |
void |
setProbability(double probability)
Sets the probability of this replacement occurring.
|
void |
setTo(org.bukkit.entity.EntityType entityType)
Sets the replacement
EntityType. |
private final org.bukkit.entity.EntityType _from
private org.bukkit.entity.EntityType _to
private double _probability
public Replacement(org.bukkit.entity.EntityType from,
org.bukkit.entity.EntityType to,
double probability)
from - the EntityType to replace.to - the replacement EntityType.probability - the probability of the replacement occurring.public org.bukkit.entity.EntityType getFrom()
EntityType to be replaced.EntityType to be replaced.public org.bukkit.entity.EntityType getTo()
EntityType.EntityType.public void setTo(org.bukkit.entity.EntityType entityType)
EntityType.entityType - the new replacement EntityType.public double getProbability()
public void setProbability(double probability)
probability - the new probability of this replacement occurring.