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
ConstructorsConstructorDescriptionGlowDungeon(Random random, org.bukkit.Location location) Creates an instance with a random size. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanPlace(StructureBuilder builder) Returns whether a givenStructureBuildercan place this dungeon in its chosen location.booleangenerate(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 givenStructureBuildercan place this dungeon in its chosen location.- Parameters:
builder- a StructureBuilder for this and for the world andBlockStateDelegatethat 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:
generatein classGlowStructurePiece
-