Class InternalContainerUtilItemStack
java.lang.Object
com.hypixel.hytale.server.core.inventory.container.InternalContainerUtilItemStack
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static ItemStackTransactioninternal_addItemStack(ItemContainer itemContainer, ItemStack itemStack, boolean allOrNothing, boolean fullStacks, boolean filter) protected static ListTransaction<ItemStackTransaction> internal_addItemStacks(ItemContainer itemContainer, List<ItemStack> itemStacks, boolean allOrNothing, boolean fullStacks, boolean filter) protected static ListTransaction<ItemStackSlotTransaction> internal_addItemStacksOrdered(ItemContainer itemContainer, short offset, List<ItemStack> itemStacks, boolean allOrNothing, boolean filter) protected static ItemStackSlotTransactioninternal_addItemStackToSlot(ItemContainer itemContainer, short slot, ItemStack itemStack, boolean allOrNothing, boolean filter) protected static ItemStackSlotTransactioninternal_addToEmptySlot(ItemContainer container, short slot, ItemStack itemStack, int itemMaxStack, boolean filter) protected static ItemStackSlotTransactioninternal_addToExistingSlot(ItemContainer container, short slot, ItemStack itemStack, int itemMaxStack, boolean filter) protected static ItemStackTransactioninternal_removeItemStack(ItemContainer itemContainer, ItemStack itemStack, boolean allOrNothing, boolean filter) protected static SlotTransactioninternal_removeItemStackFromSlot(ItemContainer itemContainer, short slot, boolean filter) protected static ItemStackSlotTransactioninternal_removeItemStackFromSlot(ItemContainer itemContainer, short slot, int quantityToRemove, boolean allOrNothing, boolean filter) protected static ItemStackSlotTransactioninternal_removeItemStackFromSlot(ItemContainer itemContainer, short slot, ItemStack itemStackToRemove, int quantityToRemove, boolean allOrNothing, boolean filter) protected static ItemStackSlotTransactioninternal_removeItemStackFromSlot(ItemContainer itemContainer, short slot, ItemStack itemStackToRemove, int quantityToRemove, boolean allOrNothing, boolean filter, BiPredicate<ItemStack, ItemStack> predicate) protected static ListTransaction<ItemStackTransaction> internal_removeItemStacks(ItemContainer itemContainer, List<ItemStack> itemStacks, boolean allOrNothing, boolean filter) protected static ItemStackSlotTransactioninternal_setItemStackForSlot(ItemContainer itemContainer, short slot, ItemStack itemStack, boolean filter) protected static inttestAddToEmptySlots(ItemContainer container, ItemStack itemStack, int itemMaxStack, int testQuantityRemaining, boolean filter) protected static inttestAddToExistingItemStacks(ItemContainer container, ItemStack itemStack, int itemMaxStack, int testQuantityRemaining, boolean filter) protected static inttestAddToExistingSlot(ItemContainer abstractItemContainer, short slot, ItemStack itemStack, int itemMaxStack, int testQuantityRemaining, boolean filter) protected static inttestRemoveItemStackFromItems(ItemContainer container, ItemStack itemStack, int testQuantityRemaining, boolean filter) protected static inttestRemoveItemStackFromSlot(ItemContainer container, short slot, ItemStack itemStack, int testQuantityRemaining, boolean filter) protected static inttestRemoveItemStackFromSlot(ItemContainer container, short slot, ItemStack itemStack, int testQuantityRemaining, boolean filter, BiPredicate<ItemStack, ItemStack> predicate) protected static TestRemoveItemSlotResulttestRemoveItemStackSlotFromItems(ItemContainer container, ItemStack itemStack, int testQuantityRemaining, boolean filter) protected static TestRemoveItemSlotResulttestRemoveItemStackSlotFromItems(ItemContainer container, ItemStack itemStack, int testQuantityRemaining, boolean filter, BiPredicate<ItemStack, ItemStack> predicate)
-
Constructor Details
-
InternalContainerUtilItemStack
public InternalContainerUtilItemStack()
-
-
Method Details
-
testAddToExistingSlot
protected static int testAddToExistingSlot(@Nonnull ItemContainer abstractItemContainer, short slot, ItemStack itemStack, int itemMaxStack, int testQuantityRemaining, boolean filter) -
internal_addToExistingSlot
@Nonnull protected static ItemStackSlotTransaction internal_addToExistingSlot(@Nonnull ItemContainer container, short slot, @Nonnull ItemStack itemStack, int itemMaxStack, boolean filter) -
internal_addToEmptySlot
@Nonnull protected static ItemStackSlotTransaction internal_addToEmptySlot(@Nonnull ItemContainer container, short slot, @Nonnull ItemStack itemStack, int itemMaxStack, boolean filter) -
testAddToEmptySlots
protected static int testAddToEmptySlots(@Nonnull ItemContainer container, ItemStack itemStack, int itemMaxStack, int testQuantityRemaining, boolean filter) -
internal_addItemStackToSlot
protected static ItemStackSlotTransaction internal_addItemStackToSlot(@Nonnull ItemContainer itemContainer, short slot, @Nonnull ItemStack itemStack, boolean allOrNothing, boolean filter) -
internal_setItemStackForSlot
@Nonnull protected static ItemStackSlotTransaction internal_setItemStackForSlot(@Nonnull ItemContainer itemContainer, short slot, ItemStack itemStack, boolean filter) -
internal_removeItemStackFromSlot
@Nonnull protected static SlotTransaction internal_removeItemStackFromSlot(@Nonnull ItemContainer itemContainer, short slot, boolean filter) -
internal_removeItemStackFromSlot
protected static ItemStackSlotTransaction internal_removeItemStackFromSlot(@Nonnull ItemContainer itemContainer, short slot, int quantityToRemove, boolean allOrNothing, boolean filter) -
internal_removeItemStackFromSlot
protected static ItemStackSlotTransaction internal_removeItemStackFromSlot(@Nonnull ItemContainer itemContainer, short slot, @Nullable ItemStack itemStackToRemove, int quantityToRemove, boolean allOrNothing, boolean filter) -
internal_removeItemStackFromSlot
protected static ItemStackSlotTransaction internal_removeItemStackFromSlot(@Nonnull ItemContainer itemContainer, short slot, @Nullable ItemStack itemStackToRemove, int quantityToRemove, boolean allOrNothing, boolean filter, BiPredicate<ItemStack, ItemStack> predicate) -
testRemoveItemStackFromSlot
protected static int testRemoveItemStackFromSlot(@Nonnull ItemContainer container, short slot, ItemStack itemStack, int testQuantityRemaining, boolean filter) -
testRemoveItemStackFromSlot
protected static int testRemoveItemStackFromSlot(@Nonnull ItemContainer container, short slot, ItemStack itemStack, int testQuantityRemaining, boolean filter, BiPredicate<ItemStack, ItemStack> predicate) -
internal_addItemStack
protected static ItemStackTransaction internal_addItemStack(@Nonnull ItemContainer itemContainer, @Nonnull ItemStack itemStack, boolean allOrNothing, boolean fullStacks, boolean filter) -
internal_addItemStacks
protected static ListTransaction<ItemStackTransaction> internal_addItemStacks(@Nonnull ItemContainer itemContainer, @Nullable List<ItemStack> itemStacks, boolean allOrNothing, boolean fullStacks, boolean filter) -
internal_addItemStacksOrdered
protected static ListTransaction<ItemStackSlotTransaction> internal_addItemStacksOrdered(@Nonnull ItemContainer itemContainer, short offset, @Nullable List<ItemStack> itemStacks, boolean allOrNothing, boolean filter) -
testAddToExistingItemStacks
protected static int testAddToExistingItemStacks(@Nonnull ItemContainer container, ItemStack itemStack, int itemMaxStack, int testQuantityRemaining, boolean filter) -
internal_removeItemStack
protected static ItemStackTransaction internal_removeItemStack(@Nonnull ItemContainer itemContainer, @Nonnull ItemStack itemStack, boolean allOrNothing, boolean filter) -
internal_removeItemStacks
protected static ListTransaction<ItemStackTransaction> internal_removeItemStacks(@Nonnull ItemContainer itemContainer, @Nullable List<ItemStack> itemStacks, boolean allOrNothing, boolean filter) -
testRemoveItemStackFromItems
protected static int testRemoveItemStackFromItems(@Nonnull ItemContainer container, ItemStack itemStack, int testQuantityRemaining, boolean filter) -
testRemoveItemStackSlotFromItems
protected static TestRemoveItemSlotResult testRemoveItemStackSlotFromItems(@Nonnull ItemContainer container, ItemStack itemStack, int testQuantityRemaining, boolean filter) -
testRemoveItemStackSlotFromItems
protected static TestRemoveItemSlotResult testRemoveItemStackSlotFromItems(@Nonnull ItemContainer container, ItemStack itemStack, int testQuantityRemaining, boolean filter, BiPredicate<ItemStack, ItemStack> predicate)
-