Added remove option.

This commit is contained in:
Brianna 2020-04-24 11:46:48 -04:00
parent 78877cf246
commit f509f24473
13 changed files with 74 additions and 0 deletions

View File

@ -16,6 +16,8 @@ public interface NBTCompound {
NBTCompound set(String tag, byte b); NBTCompound set(String tag, byte b);
NBTCompound remove(String tag);
boolean has(String tag); boolean has(String tag);
NBTObject getNBTObject(String tag); NBTObject getNBTObject(String tag);

View File

@ -58,6 +58,12 @@ public class NBTCompoundImpl implements NBTCompound {
return this; return this;
} }
@Override
public NBTCompound remove(String tag) {
compound.remove(tag);
return this;
}
@Override @Override
public boolean has(String tag) { public boolean has(String tag) {
return compound.hasKey(tag); return compound.hasKey(tag);

View File

@ -58,6 +58,12 @@ public class NBTCompoundImpl implements NBTCompound {
return this; return this;
} }
@Override
public NBTCompound remove(String tag) {
compound.remove(tag);
return this;
}
@Override @Override
public boolean has(String tag) { public boolean has(String tag) {
return compound.hasKey(tag); return compound.hasKey(tag);

View File

@ -58,6 +58,12 @@ public class NBTCompoundImpl implements NBTCompound {
return this; return this;
} }
@Override
public NBTCompound remove(String tag) {
compound.remove(tag);
return this;
}
@Override @Override
public boolean has(String tag) { public boolean has(String tag) {
return compound.hasKey(tag); return compound.hasKey(tag);

View File

@ -58,6 +58,12 @@ public class NBTCompoundImpl implements NBTCompound {
return this; return this;
} }
@Override
public NBTCompound remove(String tag) {
compound.remove(tag);
return this;
}
@Override @Override
public boolean has(String tag) { public boolean has(String tag) {
return compound.hasKey(tag); return compound.hasKey(tag);

View File

@ -58,6 +58,12 @@ public class NBTCompoundImpl implements NBTCompound {
return this; return this;
} }
@Override
public NBTCompound remove(String tag) {
compound.remove(tag);
return this;
}
@Override @Override
public boolean has(String tag) { public boolean has(String tag) {
return compound.hasKey(tag); return compound.hasKey(tag);

View File

@ -58,6 +58,12 @@ public class NBTCompoundImpl implements NBTCompound {
return this; return this;
} }
@Override
public NBTCompound remove(String tag) {
compound.remove(tag);
return this;
}
@Override @Override
public boolean has(String tag) { public boolean has(String tag) {
return compound.hasKey(tag); return compound.hasKey(tag);

View File

@ -61,6 +61,12 @@ public class NBTCompoundImpl implements NBTCompound {
return this; return this;
} }
@Override
public NBTCompound remove(String tag) {
compound.remove(tag);
return this;
}
@Override @Override
public boolean has(String tag) { public boolean has(String tag) {
return compound.hasKey(tag); return compound.hasKey(tag);

View File

@ -58,6 +58,12 @@ public class NBTCompoundImpl implements NBTCompound {
return this; return this;
} }
@Override
public NBTCompound remove(String tag) {
compound.remove(tag);
return this;
}
@Override @Override
public boolean has(String tag) { public boolean has(String tag) {
return compound.hasKey(tag); return compound.hasKey(tag);

View File

@ -58,6 +58,12 @@ public class NBTCompoundImpl implements NBTCompound {
return this; return this;
} }
@Override
public NBTCompound remove(String tag) {
compound.remove(tag);
return this;
}
@Override @Override
public boolean has(String tag) { public boolean has(String tag) {
return compound.hasKey(tag); return compound.hasKey(tag);

View File

@ -58,6 +58,12 @@ public class NBTCompoundImpl implements NBTCompound {
return this; return this;
} }
@Override
public NBTCompound remove(String tag) {
compound.remove(tag);
return this;
}
@Override @Override
public boolean has(String tag) { public boolean has(String tag) {
return compound.hasKey(tag); return compound.hasKey(tag);

View File

@ -58,6 +58,12 @@ public class NBTCompoundImpl implements NBTCompound {
return this; return this;
} }
@Override
public NBTCompound remove(String tag) {
compound.remove(tag);
return this;
}
@Override @Override
public boolean has(String tag) { public boolean has(String tag) {
return compound.hasKey(tag); return compound.hasKey(tag);

View File

@ -58,6 +58,12 @@ public class NBTCompoundImpl implements NBTCompound {
return this; return this;
} }
@Override
public NBTCompound remove(String tag) {
compound.remove(tag);
return this;
}
@Override @Override
public boolean has(String tag) { public boolean has(String tag) {
return compound.hasKey(tag); return compound.hasKey(tag);