From 46fb0c9418ee945afced301bda8e5bde22bd9033 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Wed, 25 Aug 2021 12:53:37 +0100 Subject: [PATCH] Add binary tag methods to IDelegateBukkitImplyAdapter --- .../bukkit/adapter/IDelegateBukkitImplAdapter.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/adapter/IDelegateBukkitImplAdapter.java b/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/adapter/IDelegateBukkitImplAdapter.java index 42500aa9e..d5b091088 100644 --- a/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/adapter/IDelegateBukkitImplAdapter.java +++ b/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/adapter/IDelegateBukkitImplAdapter.java @@ -13,6 +13,7 @@ import com.sk89q.worldedit.math.Vector3; import com.sk89q.worldedit.registry.state.Property; import com.sk89q.worldedit.util.Direction; import com.sk89q.worldedit.util.nbt.CompoundBinaryTag; +import com.sk89q.worldedit.util.nbt.BinaryTag; import com.sk89q.worldedit.world.DataFixer; import com.sk89q.worldedit.world.biome.BiomeType; import com.sk89q.worldedit.world.block.BaseBlock; @@ -124,15 +125,26 @@ public interface IDelegateBukkitImplAdapter extends BukkitImplAdapter { return getParent().getMaterial(blockState); } + @Override default Tag toNative(T foreign) { return getParent().toNative(foreign); } + @Override + default BinaryTag toNativeBinary(T foreign) { + return getParent().toNativeBinary(foreign); + } + @Override default T fromNative(Tag foreign) { return getParent().fromNative(foreign); } + @Override + default T fromNativeBinary(BinaryTag foreign) { + return getParent().fromNativeBinary(foreign); + } + @Override @Nullable default World createWorld(WorldCreator creator) {