Class ItemStackSlotTransaction
java.lang.Object
com.hypixel.hytale.server.core.inventory.transaction.SlotTransaction
com.hypixel.hytale.server.core.inventory.transaction.ItemStackSlotTransaction
- All Implemented Interfaces:
Transaction
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final ItemStackprivate final ItemStackFields inherited from class com.hypixel.hytale.server.core.inventory.transaction.SlotTransaction
FAILED_ADD -
Constructor Summary
ConstructorsConstructorDescriptionItemStackSlotTransaction(boolean succeeded, ActionType action, short slot, ItemStack slotBefore, ItemStack slotAfter, ItemStack output, boolean allOrNothing, boolean exactAmount, boolean filter, boolean addToExistingSlot, ItemStack query, ItemStack remainder) -
Method Summary
Modifier and TypeMethodDescriptionfromParent(ItemContainer parent, short start, ItemContainer container) getQuery()booleantoParent(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
-
addToExistingSlot
private final boolean addToExistingSlot -
query
-
remainder
-
-
Constructor Details
-
ItemStackSlotTransaction
public ItemStackSlotTransaction(boolean succeeded, @Nonnull ActionType action, short slot, @Nullable ItemStack slotBefore, @Nullable ItemStack slotAfter, @Nullable ItemStack output, boolean allOrNothing, boolean exactAmount, boolean filter, boolean addToExistingSlot, @Nullable ItemStack query, @Nullable ItemStack remainder)
-
-
Method Details
-
isAddToExistingSlot
public boolean isAddToExistingSlot() -
getQuery
-
getRemainder
-
toParent
@Nonnull public ItemStackSlotTransaction toParent(ItemContainer parent, short start, ItemContainer container) - Specified by:
toParentin interfaceTransaction- Overrides:
toParentin classSlotTransaction
-
fromParent
@Nullable public ItemStackSlotTransaction fromParent(ItemContainer parent, short start, @Nonnull ItemContainer container) - Specified by:
fromParentin interfaceTransaction- Overrides:
fromParentin classSlotTransaction
-
toString
- Overrides:
toStringin classSlotTransaction
-