Class InternalContainerUtilResource
java.lang.Object
com.hypixel.hytale.server.core.inventory.container.InternalContainerUtilResource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static ResourceTransactioninternal_removeResource(ItemContainer itemContainer, ResourceQuantity resource, boolean allOrNothing, boolean exactAmount, boolean filter) protected static ResourceSlotTransactioninternal_removeResourceFromSlot(ItemContainer itemContainer, short slot, ResourceQuantity resource, boolean allOrNothing, boolean filter) protected static ListTransaction<ResourceTransaction> internal_removeResources(ItemContainer itemContainer, List<ResourceQuantity> resources, boolean allOrNothing, boolean exactAmount, boolean filter) static inttestRemoveResourceFromItems(ItemContainer container, ResourceQuantity resource, int testQuantityRemaining, boolean filter) static inttestRemoveResourceFromSlot(ItemContainer container, short slot, ResourceQuantity resource, int testQuantityRemaining, boolean filter) static TestRemoveItemSlotResulttestRemoveResourceSlotFromItems(ItemContainer container, ResourceQuantity resource, int testQuantityRemaining, boolean filter)
-
Constructor Details
-
InternalContainerUtilResource
public InternalContainerUtilResource()
-
-
Method Details
-
internal_removeResourceFromSlot
protected static ResourceSlotTransaction internal_removeResourceFromSlot(@Nonnull ItemContainer itemContainer, short slot, @Nonnull ResourceQuantity resource, boolean allOrNothing, boolean filter) -
internal_removeResource
protected static ResourceTransaction internal_removeResource(@Nonnull ItemContainer itemContainer, @Nonnull ResourceQuantity resource, boolean allOrNothing, boolean exactAmount, boolean filter) -
internal_removeResources
protected static ListTransaction<ResourceTransaction> internal_removeResources(@Nonnull ItemContainer itemContainer, @Nullable List<ResourceQuantity> resources, boolean allOrNothing, boolean exactAmount, boolean filter) -
testRemoveResourceFromItems
public static int testRemoveResourceFromItems(@Nonnull ItemContainer container, @Nonnull ResourceQuantity resource, int testQuantityRemaining, boolean filter) -
testRemoveResourceSlotFromItems
public static TestRemoveItemSlotResult testRemoveResourceSlotFromItems(@Nonnull ItemContainer container, @Nonnull ResourceQuantity resource, int testQuantityRemaining, boolean filter) -
testRemoveResourceFromSlot
public static int testRemoveResourceFromSlot(@Nonnull ItemContainer container, short slot, @Nonnull ResourceQuantity resource, int testQuantityRemaining, boolean filter)
-