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