Class Schematic
java.lang.Object
me.c7dev.dexterity.displays.schematics.Schematic
Reads and pastes an existing schematic file
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecode(byte[] data) voiddecodeObjects(byte[] data) org.bukkit.util.BoundingBoxGet the planned bounding box for the overall planned display before pasting itorg.bukkit.util.BoundingBoxgetPlannedBoundingBox(int index) Get the planned bounding box of the nth planned sub-displayintpaste(org.bukkit.Location loc) Create a copy of the schematic centered at the specified locationvoidreloadBlocks(List<Token> data) Interprets the token sequence to translate back intoDexBlockstates
-
Constructor Details
-
Schematic
-
-
Method Details
-
getAuthor
-
getSchemaVersion
public int getSchemaVersion() -
decode
-
decodeObjects
public void decodeObjects(byte[] data) -
reloadBlocks
Interprets the token sequence to translate back intoDexBlockstates- Parameters:
data-
-
getPlannedBoundingBox
public org.bukkit.util.BoundingBox getPlannedBoundingBox()Get the planned bounding box for the overall planned display before pasting it- Returns:
-
getPlannedBoundingBox
public org.bukkit.util.BoundingBox getPlannedBoundingBox(int index) Get the planned bounding box of the nth planned sub-display- Parameters:
index-- Returns:
-
paste
Create a copy of the schematic centered at the specified location- Parameters:
loc-
-