public class CocoaTree extends JungleTree
delegate, height, leavesType, logType, overridablesPLANT_TYPES| Constructor and Description |
|---|
CocoaTree(Random random,
BlockStateDelegate delegate)
Initializes this tree, preparing it to attempt to generate.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addVinesOnLeaves(int baseX,
int baseY,
int baseZ,
org.bukkit.World world,
Random random) |
boolean |
generate(org.bukkit.World world,
Random random,
int blockX,
int blockY,
int blockZ)
Generates this feature.
|
blockTypeAt, canHeightFit, cannotGenerateAt, canPlace, canPlaceOn, generate, replaceIfAirOrLeaves, setHeight, setOverridables, setTypesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitkillPlantAbovepublic CocoaTree(Random random, BlockStateDelegate delegate)
random - the PRNGdelegate - the BlockStateDelegate used to check for space and to fill wood andpublic 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 addVinesOnLeaves(int baseX,
int baseY,
int baseZ,
org.bukkit.World world,
Random random)
Copyright © 2021. All rights reserved.