public class OreGenEvent extends Event
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.pos
contains the coordinates of the chunk position currently being populated with ores.MinecraftForge.ORE_GEN_BUS
.Modifier and Type | Class and Description |
---|---|
static class |
OreGenEvent.GenerateMinable
GenerateMinable is fired when a mineable block is generated in a chunk.
This event is fired just after ore generation in BiomeDecorator.generateOres(World, Random) .OreGenEvent.GenerateMinable.type contains the enum value for the Ore attempting to be generated.OreGenEvent.GenerateMinable.generator contains the WorldGenerator generating this ore. |
static class |
OreGenEvent.Post
OreGenEvent.Post is fired just after a chunk is populated with ores.
This event is fired just after ore generation in BiomeDecorator.generateOres(World, Random) .This event is not Cancelable .This event does not have a result. |
static class |
OreGenEvent.Pre
OreGenEvent.Pre is fired just before a chunk is populated with ores.
This event is fired just before ore generation in BiomeDecorator.generateOres(World, Random) .This event is not Cancelable .This event does not have a result. |
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private BlockPos |
pos |
private java.util.Random |
rand |
private World |
world |
Constructor and Description |
---|
OreGenEvent(World world,
java.util.Random rand,
BlockPos pos) |
Modifier and Type | Method and Description |
---|---|
BlockPos |
getPos() |
java.util.Random |
getRand() |
World |
getWorld() |
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup