v1_18_1/src/main/java/com/darksoldier1404/dppc/utils/NBT.java
@NotNull
    public static ItemStack removeTag(ItemStack objitem, String key) {
        net.minecraft.world.item.ItemStack item = CraftItemStack.asNMSCopy(objitem);
        NBTTagCompound ntc = item.r() ? item.t() : new NBTTagCompound();
        item.c(ntc);
        item.c(key);
        return CraftItemStack.asBukkitCopy(item);
    }
/**
     * @param objitem require ItemStack
     * @param key     require String
     * @return ItemStack
     */
@param objitem require ItemStack
@param key     require String
@return ItemStack
@param objitem require ItemStack @param key require String @return ItemStack
@NotNull
    public static ItemStack removeTag(ItemStack objitem, String key) {
        net.minecraft.world.item.ItemStack item = CraftItemStack.asNMSCopy(objitem);
        NBTTagCompound ntc = item.r() ? item.t() : new NBTTagCompound();
        item.c(ntc);
        item.c(key);
        return CraftItemStack.asBukkitCopy(item);
    }
@ NotNull public static ItemStack removeTag ( ItemStack objitem , String key ) { net . minecraft . world . item . ItemStack item = CraftItemStack . asNMSCopy ( objitem ) ; NBTTagCompound ntc = item . r ( ) ? item . t ( ) : new NBTTagCompound ( ) ; item . c ( ntc ) ; item . c ( key ) ; return CraftItemStack . asBukkitCopy ( item ) ; }
@param objitem require ItemStack
 @param key     require String
 @return ItemStack
@param objitem require ItemStack @param key require String @return ItemStack