public class DecorateBiomeEvent extends Event
DeferredBiomeDecorator.fireCreateEventAndReplace(Biome)
.world
contains the world that is being decorated. rand
contains an instance of Random to be used. chunkPos
contains the original chunk for the decorator. Cancelable
.
HasResult
MinecraftForge.TERRAIN_GEN_BUS
.Modifier and Type | Class and Description |
---|---|
static class |
DecorateBiomeEvent.Decorate
This event is fired when a chunk is decorated with a biome feature.
|
static class |
DecorateBiomeEvent.Post
This event is fired after a chunk is decorated with a biome feature.
|
static class |
DecorateBiomeEvent.Pre
This event is fired before a chunk is decorated with a biome feature.
|
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private ChunkPos |
chunkPos |
private BlockPos |
pos
Deprecated.
use
chunkPos |
private java.util.Random |
rand |
private World |
world |
Constructor and Description |
---|
DecorateBiomeEvent(World world,
java.util.Random rand,
BlockPos pos)
Deprecated.
|
DecorateBiomeEvent(World world,
java.util.Random rand,
ChunkPos chunkPos) |
Modifier and Type | Method and Description |
---|---|
ChunkPos |
getChunkPos() |
BlockPos |
getPos()
Deprecated.
use
getChunkPos() or DecorateBiomeEvent.Decorate.getPlacementPos() instead. |
java.util.Random |
getRand() |
World |
getWorld() |
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
private final World world
private final java.util.Random rand
private final ChunkPos chunkPos
public World getWorld()
public java.util.Random getRand()
@Deprecated public BlockPos getPos()
getChunkPos()
or DecorateBiomeEvent.Decorate.getPlacementPos()
instead.public ChunkPos getChunkPos()