Spigot spawn entity

World testWorld = Bukkit.getWorld("Hello World!");
Location spawnLocation = new Location(testWorld, 0, 20, 0);
Entity spawnedPig = testWorld.spawnEntity(spawnLocation, EntityType.PIG);
Content Protection by DMCA.com
Please Share