public class PopulateChunkEvent extends ChunkProviderEvent
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(IChunkProvider, int, int), ChunkProviderGenerate#populate(IChunkProvider, int, int), and ChunkProviderHell#populate(IChunkProvider, 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(IChunkProvider, int, int), ChunkProviderGenerate#populate(IChunkProvider, int, int), and ChunkProviderHell#populate(IChunkProvider, 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(IChunkProvider, int, int), ChunkProviderGenerate#populate(IChunkProvider, int, int), and ChunkProviderHell#populate(IChunkProvider, int, int). |
ChunkProviderEvent.InitNoiseField, ChunkProviderEvent.ReplaceBiomeBlocksEvent.HasResult, Event.Result| Modifier and Type | Field and Description |
|---|---|
int |
chunkX |
int |
chunkZ |
boolean |
hasVillageGenerated |
java.util.Random |
rand |
World |
world |
chunkProvider| Constructor and Description |
|---|
PopulateChunkEvent(IChunkProvider chunkProvider,
World world,
java.util.Random rand,
int chunkX,
int chunkZ,
boolean hasVillageGenerated) |
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setuppublic final World world
public final java.util.Random rand
public final int chunkX
public final int chunkZ
public final boolean hasVillageGenerated
public PopulateChunkEvent(IChunkProvider chunkProvider, World world, java.util.Random rand, int chunkX, int chunkZ, boolean hasVillageGenerated)