Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 20:40:08 +01:00
Added API to allow plugins to set the world's spawn flags.
Dieser Commit ist enthalten in:
Ursprung
89a524678a
Commit
cb7b82d452
@ -765,4 +765,16 @@ public class CraftWorld implements World {
|
||||
public ChunkSnapshot getEmptyChunkSnapshot(int x, int z, boolean includeBiome, boolean includeBiomeTempRain) {
|
||||
return CraftChunk.getEmptyChunkSnapshot(x, z, this, includeBiome, includeBiomeTempRain);
|
||||
}
|
||||
|
||||
public void setSpawnFlags(boolean allowMonsters, boolean allowAnimals) {
|
||||
world.setSpawnFlags(allowMonsters, allowAnimals);
|
||||
}
|
||||
|
||||
public boolean getAllowAnimals() {
|
||||
return world.allowAnimals;
|
||||
}
|
||||
|
||||
public boolean getAllowMonsters() {
|
||||
return world.allowMonsters;
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren