public class PopulateChunkEvent extends ChunkGeneratorEvent
Event as its parameter, the method will
receive every child event of this class.world contains the world this event is occurring in.rand contains an instance of random that can be used in this event.chunkX contains the x-coordinate of the chunk currently being populated with a terrain feature.chunkZ contains the z-coordinate of the chunk currently being populated with ores.hasVillageGenerated contains the boolean value stating if the chunk already has a village spawned in it.MinecraftForge.EVENT_BUS, except PopulateChunkEvent.Populate, which fires on the MinecraftForge.TERRAIN_GEN_BUS.| Modifier and Type | Class and Description |
|---|---|
static class |
PopulateChunkEvent.Populate
PopulateChunkEvent.Populate is fired when a chunk is populated with a terrain feature.
This event is fired during terrain feature generation in ChunkProviderEnd.populate(int, int),
ChunkProviderOverworld.populate(int, int),
and ChunkProviderHell.populate(int, int). |
static class |
PopulateChunkEvent.Post
PopulateChunkEvent.Post is fired just after a chunk is populated with a terrain feature.
This event is fired just after terrain feature generation in ChunkProviderEnd.populate(int, int),
ChunkProviderOverworld.populate(int, int),
and ChunkProviderHell.populate(int, int). |
static class |
PopulateChunkEvent.Pre
PopulateChunkEvent.Pre is fired just before a chunk is populated a terrain feature.
This event is fired just before terrain feature generation in ChunkProviderEnd.populate(int, int),
ChunkProviderOverworld.populate(int, int),
and ChunkProviderHell.populate(int, int). |
ChunkGeneratorEvent.InitNoiseField, ChunkGeneratorEvent.ReplaceBiomeBlocksEvent.HasResult, Event.Result| Constructor and Description |
|---|
PopulateChunkEvent(IChunkGenerator gen,
World world,
java.util.Random rand,
int chunkX,
int chunkZ,
boolean hasVillageGenerated) |
| Modifier and Type | Method and Description |
|---|---|
int |
getChunkX() |
int |
getChunkZ() |
java.util.Random |
getRand() |
World |
getWorld() |
boolean |
isHasVillageGenerated() |
getGen, getGeneratorgetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setuppublic PopulateChunkEvent(IChunkGenerator gen, World world, java.util.Random rand, int chunkX, int chunkZ, boolean hasVillageGenerated)
public World getWorld()
public java.util.Random getRand()
public int getChunkX()
public int getChunkZ()
public boolean isHasVillageGenerated()