@Override public boolean isStackEqual(ComparableItemStack other) { return super.isStackEqual(other) && isStackTagEqual((ComparableItemStackNBT) other); }
@Override public boolean equals(Object o) { return o instanceof ComparableItemStack && isItemEqual((ComparableItemStack) o); }
public SlotSpecificItem(IInventory inventory, int index, int x, int y, ItemStack stack) { super(inventory, index, x, y); this.stack = new ComparableItemStack(stack); }
@Override public boolean isItemValid(ItemStack stack) { return this.stack.isItemEqual(new ComparableItemStack(stack)); }
@Override public boolean equals(Object o) { return o instanceof ComparableItemStackNBT && isItemEqual((ComparableItemStack) o) && isStackTagEqual((ComparableItemStackNBT) o); }
public static ComparableItemStackValidated convertInput(ItemStack stack) { return new ComparableItemStackValidated(stack); }
public ComparableItemStack(Item item, int metadata, int stackSize) { this.item = item; this.metadata = metadata; this.stackSize = stackSize; this.oreID = ItemHelper.oreProxy.getOreID(this.toItemStack()); this.oreName = ItemHelper.oreProxy.getOreName(oreID); }
public static ComparableItemStackValidatedNBT convertInput(ItemStack stack) { return new ComparableItemStackValidatedNBT(stack, oreValidator); }
public boolean isItemEqual(ComparableItemStack other) { return other != null && (oreID != -1 && oreID == other.oreID || isEqual(other)); }
@Override public ComparableItemStack clone() { return new ComparableItemStack(this); }
public static ComparableItemStackValidated convertInput(ItemStack stack) { return new ComparableItemStackValidated(stack, oreValidator); }
public static ComparableItemStackValidatedNBT convertInput(ItemStack stack) { return new ComparableItemStackValidatedNBT(stack, oreValidator); }
public boolean isStackEqual(ComparableItemStack other) { return isItemEqual(other) && stackSize == other.stackSize; }
public static ComparableItemStackValidated convertInput(ItemStack stack) { return new ComparableItemStackValidated(stack, oreValidator); }
public static ComparableItemStackValidatedNBT convertInput(ItemStack stack) { return new ComparableItemStackValidatedNBT(stack); }
public static ComparableItemStackValidated convertInput(ItemStack stack) { return new ComparableItemStackValidated(stack, oreValidator); }
public static ComparableItemStackValidatedNBT convertInput(ItemStack stack) { return new ComparableItemStackValidatedNBT(stack, oreValidator); }
public static ComparableItemStackValidated convertInput(ItemStack stack) { return new ComparableItemStackValidated(stack, oreValidator); }
public static ComparableItemStackValidatedNBT convertInput(ItemStack stack) { return new ComparableItemStackValidatedNBT(stack, oreValidator); }
public static ComparableItemStackValidated convertInput(ItemStack stack) { return new ComparableItemStackValidated(stack, oreValidator); }