Class GlowDungeon
java.lang.Object
net.glowstone.generator.structures.GlowStructurePiece
net.glowstone.generator.structures.GlowDungeon
-
Field Summary
Fields inherited from class net.glowstone.generator.structures.GlowStructurePiece
boundingBox
-
Constructor Summary
ConstructorDescriptionGlowDungeon
(Random random, org.bukkit.Location location) Creates an instance with a random size. -
Method Summary
Modifier and TypeMethodDescriptionboolean
canPlace
(StructureBuilder builder) Returns whether a givenStructureBuilder
can place this dungeon in its chosen location.boolean
generate
(org.bukkit.World world, Random random, StructureBoundingBox genBoundingBox, BlockStateDelegate delegate) Methods inherited from class net.glowstone.generator.structures.GlowStructurePiece
getBoundingBox, getNumericOrientation, getOrientation, getRelativeFacing, getUnknownGd, setBoundingBox, setNumericOrientation, setUnknownGd
-
Constructor Details
-
GlowDungeon
Creates an instance with a random size.- Parameters:
random
- the PRNG that will generate the sizelocation
- the location to generate in
-
-
Method Details
-
canPlace
Returns whether a givenStructureBuilder
can place this dungeon in its chosen location.- Parameters:
builder
- a StructureBuilder for this and for the world andBlockStateDelegate
that would be used to generate this- Returns:
- true if this dungeon can be placed; false otherwise
-
generate
public boolean generate(org.bukkit.World world, Random random, StructureBoundingBox genBoundingBox, BlockStateDelegate delegate) - Overrides:
generate
in classGlowStructurePiece
-