Spigot spawn entity

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
World testWorld = Bukkit.getWorld("Hello World!");
Location spawnLocation = new Location(testWorld, 0, 20, 0);
Entity spawnedPig = testWorld.spawnEntity(spawnLocation, EntityType.PIG);
World testWorld = Bukkit.getWorld("Hello World!"); Location spawnLocation = new Location(testWorld, 0, 20, 0); Entity spawnedPig = testWorld.spawnEntity(spawnLocation, EntityType.PIG);
World testWorld = Bukkit.getWorld("Hello World!");
Location spawnLocation = new Location(testWorld, 0, 20, 0);
Entity spawnedPig = testWorld.spawnEntity(spawnLocation, EntityType.PIG);