public class MegaRedwoodTree extends MegaJungleTree
| Modifier and Type | Field and Description |
|---|---|
protected int |
leavesHeight |
delegate, height, leavesType, logType, overridablesPLANT_TYPES| Constructor and Description |
|---|
MegaRedwoodTree(Random random,
BlockStateDelegate delegate)
Initializes this tree with a random height, preparing it to attempt to generate.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
setLeavesHeight(int leavesHeight) |
canPlace, canPlaceOn, generateLeaves, generateTrunkblockTypeAt, canHeightFit, cannotGenerateAt, generate, replaceIfAirOrLeaves, setHeight, setOverridables, setTypesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitkillPlantAbovepublic MegaRedwoodTree(Random random, BlockStateDelegate delegate)
random - the PRNGdelegate - the BlockStateDelegate used to check for space and to fill wood and leafprotected final void setLeavesHeight(int leavesHeight)
public boolean generate(org.bukkit.World world,
Random random,
int blockX,
int blockY,
int blockZ)
TerrainObjectgenerate in interface TerrainObjectgenerate in class MegaJungleTreeworld - 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 generateDirtBelowTrunk(org.bukkit.World world,
int blockX,
int blockY,
int blockZ)
generateDirtBelowTrunk in class MegaJungleTreeCopyright © 2021. All rights reserved.