Package net.glowstone.generator.objects
Class Cactus
java.lang.Object
net.glowstone.generator.objects.Cactus
- All Implemented Interfaces:
TerrainObject
-
Field Summary
Fields inherited from interface net.glowstone.generator.objects.TerrainObject
PLANT_TYPES
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Cactus
public Cactus()
-
-
Method Details
-
generate
Generates or extends a cactus, if there is space.- Specified by:
generate
in interfaceTerrainObject
- Parameters:
world
- the world to generate inrandom
- the PRNG that will choose the size and a few details of the shapex
- the base X coordinatey
- the base Y coordinatez
- the base Z coordinate- Returns:
- true if successfully generated
-