public abstract class SpawnBehavior<T extends Entity>
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
protected ResourceName |
name |
| Constructor | Description |
|---|---|
SpawnBehavior(ResourceName name) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
areGeneralConditionsMet(IWorld world) |
|
abstract boolean |
belongsToCap(Entity entity) |
|
boolean |
canSpawnHere(IWorld world,
double x,
double y) |
|
abstract T |
createEntity(IWorld world,
double x,
double y) |
|
int |
getEntityCap(IWorld world) |
|
double |
getEntityCapArea(IWorld world,
AbstractEntityPlayer player) |
|
abstract double |
getMaxPlayerDistance(IWorld world,
AbstractEntityPlayer player) |
|
abstract double |
getMinPlayerDistance(IWorld world,
AbstractEntityPlayer player) |
|
ResourceName |
getName() |
|
abstract int |
getPackSize(IWorld world,
double x,
double y) |
|
int |
getSpawnFrequency(IWorld world) |
|
abstract int |
getSpawnTries(IWorld world) |
|
SpawnBehavior |
register() |
protected final ResourceName name
public SpawnBehavior(ResourceName name)
public abstract double getMinPlayerDistance(IWorld world, AbstractEntityPlayer player)
public abstract double getMaxPlayerDistance(IWorld world, AbstractEntityPlayer player)
public abstract int getSpawnTries(IWorld world)
public abstract int getPackSize(IWorld world, double x, double y)
public abstract boolean belongsToCap(Entity entity)
public boolean areGeneralConditionsMet(IWorld world)
public double getEntityCapArea(IWorld world, AbstractEntityPlayer player)
public int getEntityCap(IWorld world)
public boolean canSpawnHere(IWorld world, double x, double y)
public int getSpawnFrequency(IWorld world)
public ResourceName getName()
public SpawnBehavior register()