public class NMSStructure extends Object
Modifier and Type | Field and Description |
---|---|
static int |
getNBTListMethodIndex |
static int |
pasteMethodIndex |
Constructor and Description |
---|
NMSStructure(org.bukkit.Location origin,
InputStream file)
Deprecated.
|
NMSStructure(org.bukkit.Location origin,
Object file)
Load a structure from an Object.
|
Modifier and Type | Method and Description |
---|---|
static Object |
getAsTag(InputStream file)
Gets the NBT Tag object from an InputStream.
Use for loading structure data into memory. |
org.bukkit.Location[] |
getBoundingLocations()
Gets the locations containing the structure.
|
int[] |
getDimensions()
Gets the dimensions of a structure.
|
org.bukkit.Location |
getOrigin()
Gets the origin of a structure.
|
int |
getRotation()
Gets the rotation of a structure.
|
int |
getX()
Gets the X dimension of a structure.
|
int |
getY()
Gets the Y dimension of a structure.
|
int |
getZ()
Gets the Z dimension of a structure.
|
static void |
load()
Loads the class, use to initialize reflections before generation begins.
|
void |
paste()
Pastes a structure into the world.
|
void |
setOrigin(org.bukkit.Location origin) |
void |
setRotation(int rotation)
Sets the rotation of structure.
|
public static int pasteMethodIndex
public static int getNBTListMethodIndex
@Deprecated public NMSStructure(org.bukkit.Location origin, InputStream file)
origin
- - The origin location of the structure.file
- - The InputStream from which to load the structure.public NMSStructure(org.bukkit.Location origin, Object file)
origin
- - The origin location of the structure.file
- - The InputStream from which to load the structure.public static Object getAsTag(InputStream file)
file
- InputStream to load from.public static void load()
public org.bukkit.Location getOrigin()
public void setOrigin(org.bukkit.Location origin)
public int[] getDimensions()
public int getRotation()
public void setRotation(int rotation)
rotation
- - The rotation (in degrees)public org.bukkit.Location[] getBoundingLocations()
public int getX()
public int getY()
public int getZ()
public void paste()
Copyright © 2020. All rights reserved.