Skip to content

Entity Creation

Hempfest edited this page Aug 15, 2021 · 2 revisions

Easily create entities and modify their data!

Select an entity you'd like to spawn and give it a location:

Bee bee = Entities.BEE.spawn(Location);

Interally used is Entities.Spawner, you can make your own "Spawner" like so:

public class TestSpawner extends Entities.Spawner<PolarBear> {
	public TestSpawner() {
		super(EntityType.POLAR_BEAR);
	}

	@Override
	public PolarBear spawn(@NotNull Location location) {
		return super.spawn(location);
	}
}
Clone this wiki locally