Class ResourceSlotTransaction
java.lang.Object
com.hypixel.hytale.server.core.inventory.transaction.SlotTransaction
com.hypixel.hytale.server.core.inventory.transaction.ResourceSlotTransaction
- All Implemented Interfaces:
Transaction
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final ResourceQuantityprivate final intFields inherited from class com.hypixel.hytale.server.core.inventory.transaction.SlotTransaction
FAILED_ADD -
Constructor Summary
ConstructorsConstructorDescriptionResourceSlotTransaction(boolean succeeded, ActionType action, short slot, ItemStack slotBefore, ItemStack slotAfter, ItemStack output, boolean allOrNothing, boolean exactAmount, boolean filter, ResourceQuantity query, int remainder, int consumed) -
Method Summary
Modifier and TypeMethodDescriptionfromParent(ItemContainer parent, short start, ItemContainer container) intgetQuery()inttoParent(ItemContainer parent, short start, ItemContainer container) toString()Methods inherited from class com.hypixel.hytale.server.core.inventory.transaction.SlotTransaction
getAction, getOutput, getSlot, getSlotAfter, getSlotBefore, isAllOrNothing, isExactAmount, isFilter, succeeded, wasSlotModified
-
Field Details
-
query
-
remainder
private final int remainder -
consumed
private final int consumed
-
-
Constructor Details
-
ResourceSlotTransaction
public ResourceSlotTransaction(boolean succeeded, @Nonnull ActionType action, short slot, @Nullable ItemStack slotBefore, @Nullable ItemStack slotAfter, @Nullable ItemStack output, boolean allOrNothing, boolean exactAmount, boolean filter, @Nonnull ResourceQuantity query, int remainder, int consumed)
-
-
Method Details
-
getQuery
-
getRemainder
public int getRemainder() -
getConsumed
public int getConsumed() -
toParent
@Nonnull public ResourceSlotTransaction toParent(ItemContainer parent, short start, ItemContainer container) - Specified by:
toParentin interfaceTransaction- Overrides:
toParentin classSlotTransaction
-
fromParent
@Nullable public ResourceSlotTransaction fromParent(ItemContainer parent, short start, @Nonnull ItemContainer container) - Specified by:
fromParentin interfaceTransaction- Overrides:
fromParentin classSlotTransaction
-
toString
- Overrides:
toStringin classSlotTransaction
-