📜  spigot spawn entity - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:41.485000             🧑  作者: Mango

代码示例1
World myWorld = Bukkit.getWorld("world");
    Location spawnLocation = new Location(myWorld, 0, 10, 0);
    Entity spawnedPig = myWorld.spawnEntity(spawnLocation, EntityType.PIG);