@FunctionalInterface public interface TerrainObject
Modifier and Type | Field and Description |
---|---|
static SortedSet<org.bukkit.Material> |
PLANT_TYPES
Plant block types.
|
Modifier and Type | Method and Description |
---|---|
boolean |
generate(org.bukkit.World world,
Random random,
int sourceX,
int sourceY,
int sourceZ)
Generates this feature.
|
static boolean |
killPlantAbove(org.bukkit.block.Block block)
Removes the grass, shrub, flower or mushroom directly above the given block, if present.
|
static final SortedSet<org.bukkit.Material> PLANT_TYPES
static boolean killPlantAbove(org.bukkit.block.Block block)
block
- the block to updateboolean generate(org.bukkit.World world, Random random, int sourceX, int sourceY, int sourceZ)
world
- the world to generate inrandom
- the PRNG that will choose the size and a few details of the shapesourceX
- the base X coordinatesourceY
- the base Y coordinatesourceZ
- the base Z coordinateCopyright © 2021. All rights reserved.