public abstract class GlowStructurePiece extends Object
Modifier and Type | Field and Description |
---|---|
protected StructureBoundingBox |
boundingBox |
Constructor and Description |
---|
GlowStructurePiece() |
GlowStructurePiece(org.bukkit.Location location,
org.bukkit.util.Vector size) |
GlowStructurePiece(Random random,
org.bukkit.Location location,
org.bukkit.util.Vector size)
Creates a structure piece.
|
Modifier and Type | Method and Description |
---|---|
boolean |
generate(org.bukkit.World world,
Random random,
StructureBoundingBox boundingBox,
BlockStateDelegate delegate) |
StructureBoundingBox |
getBoundingBox() |
int |
getNumericOrientation()
Returns the orientation using the numeric code from NBT.
|
org.bukkit.block.BlockFace |
getOrientation() |
protected org.bukkit.block.BlockFace |
getRelativeFacing(org.bukkit.block.BlockFace face) |
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."
|
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."
|
protected StructureBoundingBox boundingBox
public GlowStructurePiece()
public GlowStructurePiece(org.bukkit.Location location, org.bukkit.util.Vector size)
public GlowStructurePiece(Random random, org.bukkit.Location location, org.bukkit.util.Vector size)
random
- the PRNG that will choose the orientationlocation
- the root locationsize
- the size as a width-height-depth vectorpublic int getNumericOrientation()
public void setNumericOrientation(int orientation)
orientation
- the new orientation (0=north, 1=east, 2=south, 3=west)protected final org.bukkit.block.BlockFace getRelativeFacing(org.bukkit.block.BlockFace face)
public boolean generate(org.bukkit.World world, Random random, StructureBoundingBox boundingBox, BlockStateDelegate delegate)
public StructureBoundingBox getBoundingBox()
public void setBoundingBox(StructureBoundingBox boundingBox)
public org.bukkit.block.BlockFace getOrientation()
public int getUnknownGd()
public void setUnknownGd(int unknownGd)
Copyright © 2021. All rights reserved.