public class GlowDungeon extends GlowStructurePiece
boundingBox
Constructor and Description |
---|
GlowDungeon(Random random,
org.bukkit.Location location)
Creates an instance with a random size.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canPlace(StructureBuilder builder)
Returns whether a given
StructureBuilder can place this dungeon in its chosen
location. |
boolean |
generate(org.bukkit.World world,
Random random,
StructureBoundingBox genBoundingBox,
BlockStateDelegate delegate) |
getBoundingBox, getNumericOrientation, getOrientation, getRelativeFacing, getUnknownGd, setBoundingBox, setNumericOrientation, setUnknownGd
public GlowDungeon(Random random, org.bukkit.Location location)
random
- the PRNG that will generate the sizelocation
- the location to generate inpublic boolean canPlace(StructureBuilder builder)
StructureBuilder
can place this dungeon in its chosen
location.builder
- a StructureBuilder for this and for the world and BlockStateDelegate
that would be used to generate thispublic boolean generate(org.bukkit.World world, Random random, StructureBoundingBox genBoundingBox, BlockStateDelegate delegate)
generate
in class GlowStructurePiece
Copyright © 2021. All rights reserved.