Class GlowStructurePiece
java.lang.Object
net.glowstone.generator.structures.GlowStructurePiece
- Direct Known Subclasses:
GlowDesertWell
,GlowDungeon
,GlowTemplePiece
-
Field Summary
-
Constructor Summary
ConstructorDescriptionGlowStructurePiece
(Random random, org.bukkit.Location location, org.bukkit.util.Vector size) Creates a structure piece.GlowStructurePiece
(org.bukkit.Location location, org.bukkit.util.Vector size) -
Method Summary
Modifier and TypeMethodDescriptionboolean
generate
(org.bukkit.World world, Random random, StructureBoundingBox boundingBox, BlockStateDelegate delegate) int
Returns the orientation using the numeric code from NBT.org.bukkit.block.BlockFace
protected final org.bukkit.block.BlockFace
getRelativeFacing
(org.bukkit.block.BlockFace face) int
The NBT data field "GD" described in https://minecraft.gamepedia.com/Generated_structures_data_file_format like this: "Appears to be some sort of measure of how far this piece is from the start."void
setBoundingBox
(StructureBoundingBox boundingBox) void
setNumericOrientation
(int orientation) Sets the orientation using the numeric code from NBT.void
setUnknownGd
(int unknownGd) The NBT data field "GD" described in https://minecraft.gamepedia.com/Generated_structures_data_file_format like this: "Appears to be some sort of measure of how far this piece is from the start."
-
Field Details
-
boundingBox
-
-
Constructor Details
-
GlowStructurePiece
public GlowStructurePiece() -
GlowStructurePiece
public GlowStructurePiece(org.bukkit.Location location, org.bukkit.util.Vector size) -
GlowStructurePiece
Creates a structure piece.- Parameters:
random
- the PRNG that will choose the orientationlocation
- the root locationsize
- the size as a width-height-depth vector
-
-
Method Details
-
getNumericOrientation
public int getNumericOrientation()Returns the orientation using the numeric code from NBT.- Returns:
- the orientation (0=north, 1=east, 2=south, 3=west)
-
setNumericOrientation
public void setNumericOrientation(int orientation) Sets the orientation using the numeric code from NBT.- Parameters:
orientation
- the new orientation (0=north, 1=east, 2=south, 3=west)
-
getRelativeFacing
protected final org.bukkit.block.BlockFace getRelativeFacing(org.bukkit.block.BlockFace face) -
generate
public boolean generate(org.bukkit.World world, Random random, StructureBoundingBox boundingBox, BlockStateDelegate delegate) -
getBoundingBox
-
setBoundingBox
-
getOrientation
public org.bukkit.block.BlockFace getOrientation() -
getUnknownGd
public int getUnknownGd()The NBT data field "GD" described in https://minecraft.gamepedia.com/Generated_structures_data_file_format like this: "Appears to be some sort of measure of how far this piece is from the start." -
setUnknownGd
public void setUnknownGd(int unknownGd) The NBT data field "GD" described in https://minecraft.gamepedia.com/Generated_structures_data_file_format like this: "Appears to be some sort of measure of how far this piece is from the start."
-