Class MaterialTransaction
java.lang.Object
com.hypixel.hytale.server.core.inventory.transaction.ListTransaction<MaterialSlotTransaction>
com.hypixel.hytale.server.core.inventory.transaction.MaterialTransaction
- All Implemented Interfaces:
Transaction
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ActionTypeprivate final booleanprivate final booleanprivate final booleanprivate final MaterialQuantityprivate final intFields inherited from class com.hypixel.hytale.server.core.inventory.transaction.ListTransaction
EMPTY_FAILED_TRANSACTION, EMPTY_SUCCESSFUL_TRANSACTION -
Constructor Summary
ConstructorsConstructorDescriptionMaterialTransaction(boolean succeeded, ActionType action, MaterialQuantity material, int remainder, boolean allOrNothing, boolean exactAmount, boolean filter, List<MaterialSlotTransaction> slotTransactions) -
Method Summary
Modifier and TypeMethodDescriptionfromParent(ItemContainer parent, short start, ItemContainer container) intbooleanbooleanbooleanisFilter()toParent(ItemContainer parent, short start, ItemContainer container) toString()Methods inherited from class com.hypixel.hytale.server.core.inventory.transaction.ListTransaction
getEmptyTransaction, getList, size, succeeded, wasSlotModified
-
Field Details
-
action
-
material
-
remainder
private final int remainder -
allOrNothing
private final boolean allOrNothing -
exactAmount
private final boolean exactAmount -
filter
private final boolean filter
-
-
Constructor Details
-
MaterialTransaction
public MaterialTransaction(boolean succeeded, @Nonnull ActionType action, @Nonnull MaterialQuantity material, int remainder, boolean allOrNothing, boolean exactAmount, boolean filter, @Nonnull List<MaterialSlotTransaction> slotTransactions)
-
-
Method Details
-
getAction
-
getMaterial
-
getRemainder
public int getRemainder() -
isAllOrNothing
public boolean isAllOrNothing() -
isExactAmount
public boolean isExactAmount() -
isFilter
public boolean isFilter() -
toParent
@Nonnull public MaterialTransaction toParent(ItemContainer parent, short start, ItemContainer container) - Specified by:
toParentin interfaceTransaction- Overrides:
toParentin classListTransaction<MaterialSlotTransaction>
-
fromParent
@Nullable public MaterialTransaction fromParent(ItemContainer parent, short start, @Nonnull ItemContainer container) - Specified by:
fromParentin interfaceTransaction- Overrides:
fromParentin classListTransaction<MaterialSlotTransaction>
-
toString
- Overrides:
toStringin classListTransaction<MaterialSlotTransaction>
-