@Override public void setTag(String k, @Nullable NBTBase base) { int id = Integer.parseInt(k); if (id == -1) { if (base != null) { list.add(((NBTPrimitive) base).getByte()); } } else if (base != null) { list.set(id, ((NBTPrimitive) base).getByte()); } else { list.rem(id); } if (parent != null) { parent.setTag(key, new NBTTagByteArray(list.toByteArray())); } }