Package com.rodiconmc.rodiblock
Class Structure
- java.lang.Object
-
- com.rodiconmc.rodiblock.Structure
-
public class Structure extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Structure()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<org.bukkit.block.Block>
placeStructure(java.io.File file, org.bukkit.Location target, boolean mirrorX, boolean mirrorZ)
The function that places a structure into a world from an NBT file.
-
-
-
Method Detail
-
placeStructure
public static java.util.List<org.bukkit.block.Block> placeStructure(java.io.File file, org.bukkit.Location target, boolean mirrorX, boolean mirrorZ) throws java.io.IOException
The function that places a structure into a world from an NBT file. You can generate this file using the in-game Structure Block- Parameters:
file
- NBT file of the structuretarget
- The lowest value location of where you want to place the structure.mirrorX
- Whether or not to mirror the structure on the X coordinate. (Does not change block rotation values)mirrorZ
- Whether or not to mirror the structure on the Z coordinate. (Does not change block rotation values)- Returns:
- A list of blocks that were placed
- Throws:
java.io.IOException
- Exception thrown if the NBT file is formatted incorrectly.
-
-