mirror of
https://github.com/CivMC/Civ.git
synced 2026-07-18 00:20:44 +00:00
Relocate itemHandling to inventory.items
This commit is contained in:
@@ -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
|
||||
@@ -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 {
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user