diff --git a/NMS/NMS-API/src/com/songoda/core/nms/nbt/NBTCompound.java b/NMS/NMS-API/src/com/songoda/core/nms/nbt/NBTCompound.java index b2db6705..cccb4e11 100644 --- a/NMS/NMS-API/src/com/songoda/core/nms/nbt/NBTCompound.java +++ b/NMS/NMS-API/src/com/songoda/core/nms/nbt/NBTCompound.java @@ -16,6 +16,8 @@ public interface NBTCompound { NBTCompound set(String tag, byte b); + NBTCompound remove(String tag); + boolean has(String tag); NBTObject getNBTObject(String tag); diff --git a/NMS/NMS-v1_10_R1/src/com/songoda/core/nms/v1_10_R1/nbt/NBTCompoundImpl.java b/NMS/NMS-v1_10_R1/src/com/songoda/core/nms/v1_10_R1/nbt/NBTCompoundImpl.java index e44ae8ea..362c104a 100644 --- a/NMS/NMS-v1_10_R1/src/com/songoda/core/nms/v1_10_R1/nbt/NBTCompoundImpl.java +++ b/NMS/NMS-v1_10_R1/src/com/songoda/core/nms/v1_10_R1/nbt/NBTCompoundImpl.java @@ -58,6 +58,12 @@ public class NBTCompoundImpl implements NBTCompound { return this; } + @Override + public NBTCompound remove(String tag) { + compound.remove(tag); + return this; + } + @Override public boolean has(String tag) { return compound.hasKey(tag); diff --git a/NMS/NMS-v1_11_R1/src/com/songoda/core/nms/v1_11_R1/nbt/NBTCompoundImpl.java b/NMS/NMS-v1_11_R1/src/com/songoda/core/nms/v1_11_R1/nbt/NBTCompoundImpl.java index cfd2b29d..0a88e0ce 100644 --- a/NMS/NMS-v1_11_R1/src/com/songoda/core/nms/v1_11_R1/nbt/NBTCompoundImpl.java +++ b/NMS/NMS-v1_11_R1/src/com/songoda/core/nms/v1_11_R1/nbt/NBTCompoundImpl.java @@ -58,6 +58,12 @@ public class NBTCompoundImpl implements NBTCompound { return this; } + @Override + public NBTCompound remove(String tag) { + compound.remove(tag); + return this; + } + @Override public boolean has(String tag) { return compound.hasKey(tag); diff --git a/NMS/NMS-v1_12_R1/src/com/songoda/core/nms/v1_12_R1/nbt/NBTCompoundImpl.java b/NMS/NMS-v1_12_R1/src/com/songoda/core/nms/v1_12_R1/nbt/NBTCompoundImpl.java index c68e471f..d6e9b5fd 100644 --- a/NMS/NMS-v1_12_R1/src/com/songoda/core/nms/v1_12_R1/nbt/NBTCompoundImpl.java +++ b/NMS/NMS-v1_12_R1/src/com/songoda/core/nms/v1_12_R1/nbt/NBTCompoundImpl.java @@ -58,6 +58,12 @@ public class NBTCompoundImpl implements NBTCompound { return this; } + @Override + public NBTCompound remove(String tag) { + compound.remove(tag); + return this; + } + @Override public boolean has(String tag) { return compound.hasKey(tag); diff --git a/NMS/NMS-v1_13_R1/src/com/songoda/core/nms/v1_13_R1/nbt/NBTCompoundImpl.java b/NMS/NMS-v1_13_R1/src/com/songoda/core/nms/v1_13_R1/nbt/NBTCompoundImpl.java index d7a127a2..5dd8cf81 100644 --- a/NMS/NMS-v1_13_R1/src/com/songoda/core/nms/v1_13_R1/nbt/NBTCompoundImpl.java +++ b/NMS/NMS-v1_13_R1/src/com/songoda/core/nms/v1_13_R1/nbt/NBTCompoundImpl.java @@ -58,6 +58,12 @@ public class NBTCompoundImpl implements NBTCompound { return this; } + @Override + public NBTCompound remove(String tag) { + compound.remove(tag); + return this; + } + @Override public boolean has(String tag) { return compound.hasKey(tag); diff --git a/NMS/NMS-v1_13_R2/src/com/songoda/core/nms/v1_13_R2/nbt/NBTCompoundImpl.java b/NMS/NMS-v1_13_R2/src/com/songoda/core/nms/v1_13_R2/nbt/NBTCompoundImpl.java index 6fdc5fe2..e75fef9c 100644 --- a/NMS/NMS-v1_13_R2/src/com/songoda/core/nms/v1_13_R2/nbt/NBTCompoundImpl.java +++ b/NMS/NMS-v1_13_R2/src/com/songoda/core/nms/v1_13_R2/nbt/NBTCompoundImpl.java @@ -58,6 +58,12 @@ public class NBTCompoundImpl implements NBTCompound { return this; } + @Override + public NBTCompound remove(String tag) { + compound.remove(tag); + return this; + } + @Override public boolean has(String tag) { return compound.hasKey(tag); diff --git a/NMS/NMS-v1_14_R1/src/com/songoda/core/nms/v1_14_R1/nbt/NBTCompoundImpl.java b/NMS/NMS-v1_14_R1/src/com/songoda/core/nms/v1_14_R1/nbt/NBTCompoundImpl.java index 223d98e3..0b2e4cf3 100644 --- a/NMS/NMS-v1_14_R1/src/com/songoda/core/nms/v1_14_R1/nbt/NBTCompoundImpl.java +++ b/NMS/NMS-v1_14_R1/src/com/songoda/core/nms/v1_14_R1/nbt/NBTCompoundImpl.java @@ -58,6 +58,12 @@ public class NBTCompoundImpl implements NBTCompound { return this; } + @Override + public NBTCompound remove(String tag) { + compound.remove(tag); + return this; + } + @Override public boolean has(String tag) { return compound.hasKey(tag); diff --git a/NMS/NMS-v1_15_R1/src/com/songoda/core/nms/v1_15_R1/nbt/NBTCompoundImpl.java b/NMS/NMS-v1_15_R1/src/com/songoda/core/nms/v1_15_R1/nbt/NBTCompoundImpl.java index a424d5d7..58dfff2b 100644 --- a/NMS/NMS-v1_15_R1/src/com/songoda/core/nms/v1_15_R1/nbt/NBTCompoundImpl.java +++ b/NMS/NMS-v1_15_R1/src/com/songoda/core/nms/v1_15_R1/nbt/NBTCompoundImpl.java @@ -61,6 +61,12 @@ public class NBTCompoundImpl implements NBTCompound { return this; } + @Override + public NBTCompound remove(String tag) { + compound.remove(tag); + return this; + } + @Override public boolean has(String tag) { return compound.hasKey(tag); diff --git a/NMS/NMS-v1_8_R1/src/com/songoda/core/nms/v1_8_R1/nbt/NBTCompoundImpl.java b/NMS/NMS-v1_8_R1/src/com/songoda/core/nms/v1_8_R1/nbt/NBTCompoundImpl.java index 17201501..06343a37 100644 --- a/NMS/NMS-v1_8_R1/src/com/songoda/core/nms/v1_8_R1/nbt/NBTCompoundImpl.java +++ b/NMS/NMS-v1_8_R1/src/com/songoda/core/nms/v1_8_R1/nbt/NBTCompoundImpl.java @@ -58,6 +58,12 @@ public class NBTCompoundImpl implements NBTCompound { return this; } + @Override + public NBTCompound remove(String tag) { + compound.remove(tag); + return this; + } + @Override public boolean has(String tag) { return compound.hasKey(tag); diff --git a/NMS/NMS-v1_8_R2/src/com/songoda/core/nms/v1_8_R2/nbt/NBTCompoundImpl.java b/NMS/NMS-v1_8_R2/src/com/songoda/core/nms/v1_8_R2/nbt/NBTCompoundImpl.java index ecbb613f..70e21780 100644 --- a/NMS/NMS-v1_8_R2/src/com/songoda/core/nms/v1_8_R2/nbt/NBTCompoundImpl.java +++ b/NMS/NMS-v1_8_R2/src/com/songoda/core/nms/v1_8_R2/nbt/NBTCompoundImpl.java @@ -58,6 +58,12 @@ public class NBTCompoundImpl implements NBTCompound { return this; } + @Override + public NBTCompound remove(String tag) { + compound.remove(tag); + return this; + } + @Override public boolean has(String tag) { return compound.hasKey(tag); diff --git a/NMS/NMS-v1_8_R3/src/com/songoda/core/nms/v1_8_R3/nbt/NBTCompoundImpl.java b/NMS/NMS-v1_8_R3/src/com/songoda/core/nms/v1_8_R3/nbt/NBTCompoundImpl.java index 5301191c..9b2d16f2 100644 --- a/NMS/NMS-v1_8_R3/src/com/songoda/core/nms/v1_8_R3/nbt/NBTCompoundImpl.java +++ b/NMS/NMS-v1_8_R3/src/com/songoda/core/nms/v1_8_R3/nbt/NBTCompoundImpl.java @@ -58,6 +58,12 @@ public class NBTCompoundImpl implements NBTCompound { return this; } + @Override + public NBTCompound remove(String tag) { + compound.remove(tag); + return this; + } + @Override public boolean has(String tag) { return compound.hasKey(tag); diff --git a/NMS/NMS-v1_9_R1/src/com/songoda/core/nms/v1_9_R1/nbt/NBTCompoundImpl.java b/NMS/NMS-v1_9_R1/src/com/songoda/core/nms/v1_9_R1/nbt/NBTCompoundImpl.java index f6496680..31e9519d 100644 --- a/NMS/NMS-v1_9_R1/src/com/songoda/core/nms/v1_9_R1/nbt/NBTCompoundImpl.java +++ b/NMS/NMS-v1_9_R1/src/com/songoda/core/nms/v1_9_R1/nbt/NBTCompoundImpl.java @@ -58,6 +58,12 @@ public class NBTCompoundImpl implements NBTCompound { return this; } + @Override + public NBTCompound remove(String tag) { + compound.remove(tag); + return this; + } + @Override public boolean has(String tag) { return compound.hasKey(tag); diff --git a/NMS/NMS-v1_9_R2/src/com/songoda/core/nms/v1_9_R2/nbt/NBTCompoundImpl.java b/NMS/NMS-v1_9_R2/src/com/songoda/core/nms/v1_9_R2/nbt/NBTCompoundImpl.java index 09d89289..8b007fe3 100644 --- a/NMS/NMS-v1_9_R2/src/com/songoda/core/nms/v1_9_R2/nbt/NBTCompoundImpl.java +++ b/NMS/NMS-v1_9_R2/src/com/songoda/core/nms/v1_9_R2/nbt/NBTCompoundImpl.java @@ -58,6 +58,12 @@ public class NBTCompoundImpl implements NBTCompound { return this; } + @Override + public NBTCompound remove(String tag) { + compound.remove(tag); + return this; + } + @Override public boolean has(String tag) { return compound.hasKey(tag);