public class MegaJungleTree extends GenericTree
delegate, height, leavesType, logType, overridablesPLANT_TYPES| Constructor and Description |
|---|
MegaJungleTree(Random random,
BlockStateDelegate delegate)
Initializes this tree with a random height, preparing it to attempt to generate.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPlace(int baseX,
int baseY,
int baseZ,
org.bukkit.World world)
Checks whether this tree has enough space to grow.
|
boolean |
canPlaceOn(org.bukkit.block.BlockState soil)
Checks whether this tree can grow on top of the given block.
|
boolean |
generate(org.bukkit.World world,
Random random,
int blockX,
int blockY,
int blockZ)
Generates this feature.
|
protected void |
generateDirtBelowTrunk(org.bukkit.World world,
int blockX,
int blockY,
int blockZ) |
protected void |
generateLeaves(int sourceX,
int sourceY,
int sourceZ,
int radius,
boolean odd,
org.bukkit.World world) |
protected void |
generateTrunk(org.bukkit.World world,
int blockX,
int blockY,
int blockZ) |
blockTypeAt, canHeightFit, cannotGenerateAt, generate, replaceIfAirOrLeaves, setHeight, setOverridables, setTypesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitkillPlantAbovepublic MegaJungleTree(Random random, BlockStateDelegate delegate)
random - the PRNGdelegate - the BlockStateDelegate used to check for space and to fill wood andpublic boolean canPlaceOn(org.bukkit.block.BlockState soil)
GenericTreecanPlaceOn in class GenericTreesoil - the block we're growing onpublic boolean canPlace(int baseX,
int baseY,
int baseZ,
org.bukkit.World world)
GenericTreecanPlace in class GenericTreebaseX - the X coordinate of the base of the trunkbaseY - the Y coordinate of the base of the trunkbaseZ - the Z coordinate of the base of the trunkworld - the world to grow inpublic boolean generate(org.bukkit.World world,
Random random,
int blockX,
int blockY,
int blockZ)
TerrainObjectgenerate in interface TerrainObjectgenerate in class GenericTreeworld - the world to generate inrandom - the PRNG that will choose the size and a few details of the shapeblockX - the base X coordinateblockY - the base Y coordinateblockZ - the base Z coordinateprotected void generateLeaves(int sourceX,
int sourceY,
int sourceZ,
int radius,
boolean odd,
org.bukkit.World world)
protected void generateTrunk(org.bukkit.World world,
int blockX,
int blockY,
int blockZ)
protected void generateDirtBelowTrunk(org.bukkit.World world,
int blockX,
int blockY,
int blockZ)
Copyright © 2021. All rights reserved.