public abstract class SpawnEntryAPI<E> extends java.lang.Object implements RandomHelper.WeightedEntry
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Class<? extends E> |
entityClass |
protected int |
maxGroupCount |
protected int |
minGroupCount |
protected int |
weight |
| Modifier | Constructor and Description |
|---|---|
protected |
SpawnEntryAPI(java.lang.Class<? extends E> clazz,
int weight,
int maxGroup,
int minGroup) |
| Modifier and Type | Method and Description |
|---|---|
int |
getWeight() |
abstract E |
newInstance(WorldAPI<?> worldAPI) |
void |
setWeight(int weight) |
java.lang.String |
toString() |
protected java.lang.Class<? extends E> entityClass
protected int maxGroupCount
protected int minGroupCount
protected int weight
protected SpawnEntryAPI(java.lang.Class<? extends E> clazz, int weight, int maxGroup, int minGroup)
public int getWeight()
getWeight in interface RandomHelper.WeightedEntrypublic abstract E newInstance(WorldAPI<?> worldAPI) throws java.lang.Exception
java.lang.Exceptionpublic void setWeight(int weight)
setWeight in interface RandomHelper.WeightedEntrypublic java.lang.String toString()
toString in class java.lang.Object