- Added DexterityAPI#loadSchematic(String name) to the API to directly load a schematic. The old constructor is now
deprecated. Here is some example code to paste a schematic in multiple locations:
Code (Text):
DexterityAPI api = Dexterity.getAPI();
Schematic schem = api.loadSchematic(mySchemName);
for (Location loc : myLocations) {
DexterityDisplay disp = schem.paste(loc);
}
(Pasting a schematic is much more efficient than loading a schematic, so if it is used frequently, the schematic should ideally be kept in RAM).
- Fixed a small bug where the API threw an error if the name contained a ".dexterity" at the end.