Relocate itemHandling to inventory.items

This commit is contained in:
Alexander
2021-06-22 10:13:53 +01:00
parent b4ead6fe3c
commit 2e39a32308
3 changed files with 4 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
package vg.civcraft.mc.civmodcore.itemHandling;
package vg.civcraft.mc.civmodcore.inventory.items;
import java.util.ArrayList;
import java.util.Collection;
@@ -17,8 +17,6 @@ import org.bukkit.enchantments.Enchantment;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.PlayerInventory;
import vg.civcraft.mc.civmodcore.inventory.items.ItemUtils;
import vg.civcraft.mc.civmodcore.inventory.items.MetaUtils;
/**
* Allows the storage and comparison of itemstacks while ignoring their maximum

View File

@@ -1,4 +1,4 @@
package vg.civcraft.mc.civmodcore.itemHandling;
package vg.civcraft.mc.civmodcore.inventory.items;
import java.util.ArrayList;
import java.util.List;
@@ -20,7 +20,6 @@ import net.minecraft.nbt.NBTTagString;
import org.bukkit.Bukkit;
import org.bukkit.configuration.MemorySection;
import org.bukkit.inventory.ItemStack;
import vg.civcraft.mc.civmodcore.inventory.items.ItemUtils;
@Deprecated
public class TagManager {

View File

@@ -24,12 +24,13 @@ import org.bukkit.craftbukkit.v1_17_R1.persistence.CraftPersistentDataContainer;
import org.bukkit.inventory.ItemStack;
import org.bukkit.persistence.PersistentDataContainer;
import vg.civcraft.mc.civmodcore.inventory.items.ItemUtils;
import vg.civcraft.mc.civmodcore.inventory.items.TagManager;
import vg.civcraft.mc.civmodcore.utilities.NullUtils;
import vg.civcraft.mc.civmodcore.utilities.Validation;
/**
* Wrapper class for NBTTagCompounds to make NBT serialization and deserialization as robust as possible. Intended to
* replace {@link vg.civcraft.mc.civmodcore.itemHandling.TagManager TagManager} though the .mapToNBT and .listToNBT
* replace {@link TagManager TagManager} though the .mapToNBT and .listToNBT
* APIs will not be re-implemented here as it's better to have a finer control of how data is written and read.
*/
public class NBTCompound implements Cloneable, Validation {