spawn

public abstract T spawn<T extends Entity>(Location location, Class<T> clazz)

Spawn an entity of getClassById specific class at the given Location

Return

an instance of the spawned Entity

Parameters

location

the Location to spawn the entity at

clazz

the class of the Entity to spawn

<T>

the class of the Entity to spawn

Throws

if either parameter is null or the Entity requested cannot be spawned