Lazy tags + get / set tiles

Lazy tags means tiles/ents are not translated into the nms NBTBase until it is needed. Should be faster in cases where getFullBlock is called, but nbt is not always needed.
Commands like Copy and Paste, where the input/output are both nms worlds, can entirely bypass WorldEdit translating to and from the WorldEdit JNBT classes.
This commit is contained in:
Jesse Boyd
2019-11-20 03:40:52 +00:00
parent 60759934a3
commit 144ea2ef34
40 changed files with 298 additions and 172 deletions

View File

@ -79,6 +79,7 @@ public enum Capability {
* The capability of a platform to perform modifications to a world.
*/
WORLD_EDITING {
/*
@Override
void initialize(PlatformManager platformManager, Platform platform) {
BlockRegistry blockRegistry = platform.getRegistries().getBlockRegistry();
@ -93,6 +94,7 @@ public enum Capability {
void unload(PlatformManager platformManager, Platform platform) {
BlockStateIdAccess.clear();
}
*/
};
void initialize(PlatformManager platformManager, Platform platform) {