Class GlowStructurePiece
java.lang.Object
net.glowstone.generator.structures.GlowStructurePiece
- Direct Known Subclasses:
GlowDesertWell,GlowDungeon,GlowTemplePiece
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGlowStructurePiece(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 TypeMethodDescriptionbooleangenerate(org.bukkit.World world, Random random, StructureBoundingBox boundingBox, BlockStateDelegate delegate) intReturns the orientation using the numeric code from NBT.org.bukkit.block.BlockFaceprotected final org.bukkit.block.BlockFacegetRelativeFacing(org.bukkit.block.BlockFace face) intThe 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."voidsetBoundingBox(StructureBoundingBox boundingBox) voidsetNumericOrientation(int orientation) Sets the orientation using the numeric code from NBT.voidsetUnknownGd(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."
-