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.
|
static class |
PopulateChunkEvent.Post
PopulateChunkEvent.Post is fired just after a chunk is populated with a terrain feature.
|
static class |
PopulateChunkEvent.Pre
PopulateChunkEvent.Pre is fired just before a chunk is populated a terrain feature.
|
ChunkGeneratorEvent.InitNoiseField, ChunkGeneratorEvent.ReplaceBiomeBlocks
Event.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, getGenerator
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public 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()