public static class DecorateBiomeEvent.Decorate extends DecorateBiomeEvent
You can set the result to DENY to prevent the default biome decoration.
Modifier and Type | Class and Description |
---|---|
static class |
DecorateBiomeEvent.Decorate.EventType
Use
DecorateBiomeEvent.Decorate.EventType.CUSTOM to filter custom event types |
DecorateBiomeEvent.Decorate, DecorateBiomeEvent.Post, DecorateBiomeEvent.Pre
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private BlockPos |
placementPos |
private DecorateBiomeEvent.Decorate.EventType |
type |
Constructor and Description |
---|
Decorate(World world,
java.util.Random rand,
BlockPos pos,
DecorateBiomeEvent.Decorate.EventType type)
Deprecated.
|
Decorate(World world,
java.util.Random rand,
ChunkPos chunkPos,
BlockPos placementPos,
DecorateBiomeEvent.Decorate.EventType type) |
Modifier and Type | Method and Description |
---|---|
BlockPos |
getPlacementPos()
This may be anywhere inside the 2x2 chunk area for generation.
|
DecorateBiomeEvent.Decorate.EventType |
getType() |
getChunkPos, getPos, getRand, getWorld
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
private final DecorateBiomeEvent.Decorate.EventType type
@Nullable private final BlockPos placementPos
public Decorate(World world, java.util.Random rand, ChunkPos chunkPos, @Nullable BlockPos placementPos, DecorateBiomeEvent.Decorate.EventType type)
@Deprecated public Decorate(World world, java.util.Random rand, BlockPos pos, DecorateBiomeEvent.Decorate.EventType type)
public DecorateBiomeEvent.Decorate.EventType getType()
@Nullable public BlockPos getPlacementPos()
DecorateBiomeEvent.getChunkPos()
.