Class WithdrawLoadoutEvent
- java.lang.Object
-
- net.eternalclient.api.events.AbstractEvent
-
- net.eternalclient.api.events.loadout.WithdrawLoadoutEvent
-
public class WithdrawLoadoutEvent extends AbstractEvent
This class represents a withdraw loadout event, which can be used to withdraw items from the bank based on a specified loadout.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classWithdrawLoadoutEvent.State
-
Constructor Summary
Constructors Constructor Description WithdrawLoadoutEvent(InventoryLoadout loadout)WithdrawLoadoutEvent(InventoryLoadout inventoryLoadout, EquipmentLoadout equipmentLoadout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WithdrawLoadoutEventaddEquipmentLoadout(EquipmentLoadout equipmentLoadout)intgetDefaultEventTimeout()EquipmentLoadoutgetEquipmentLoadout()InventoryLoadoutgetLoadout()WithdrawLoadoutEventkeepBankOpen()WithdrawLoadoutEventkeepBankOpen(boolean keepOpen)intonLoop()voidonStart()WithdrawLoadoutEventsetBank(java.util.function.Supplier<BankLocation> bank)WithdrawLoadoutEventsetBank(BankLocation bank)WithdrawLoadoutEventsetBuyRemainder(boolean buyRemainder)WithdrawLoadoutEventsetUseBuyingTeleport(boolean useBuyingTeleport)-
Methods inherited from class net.eternalclient.api.events.AbstractEvent
execute, executed, getActiveEvent, getCompleteMessage, getEventCompleteCondition, getEventCompleteTimeout, getEventInterruptCondition, getEventTimeout, getFailMessage, getRunLoggedOut, isEventCompleted, isEventFailed, isEventInterrupted, onComplete, onEventExit, onEventStart, onFail, onStop, setActiveEvent, setCompleted, setCompleted, setEventCompleteCondition, setEventCompleteCondition, setEventCompleted, setEventFailed, setEventInterruptCondition, setEventInterrupted, setEventLoginHandler, setEventTimeout, setExecutionDelay, setExecutionDelay, setExecutionTickDelay, setExecutionTickDelay, setFailed, setFailed, setInteractionMode, setLoggedOutRunnable, setLoggedOutRunnable, setReturnDelay, setReturnDelay, setReturnDelay, setReturnDelay, setReturnTickDelay, setReturnTickDelay, setReturnTickDelay, setReturnTickDelay, setRunLoggedOut, setRunLoggedOut, setSleep, shouldInterrupt, sleep, sleepAFK, sleepLowPredictable, sleepNormal, sleepPredictable
-
-
-
-
Constructor Detail
-
WithdrawLoadoutEvent
public WithdrawLoadoutEvent(InventoryLoadout loadout)
-
WithdrawLoadoutEvent
public WithdrawLoadoutEvent(InventoryLoadout inventoryLoadout, EquipmentLoadout equipmentLoadout)
-
-
Method Detail
-
getEquipmentLoadout
public EquipmentLoadout getEquipmentLoadout()
-
getLoadout
public InventoryLoadout getLoadout()
-
keepBankOpen
public WithdrawLoadoutEvent keepBankOpen()
-
keepBankOpen
public WithdrawLoadoutEvent keepBankOpen(boolean keepOpen)
-
setBank
public WithdrawLoadoutEvent setBank(BankLocation bank)
-
setBank
public WithdrawLoadoutEvent setBank(java.util.function.Supplier<BankLocation> bank)
-
setBuyRemainder
public WithdrawLoadoutEvent setBuyRemainder(boolean buyRemainder)
-
setUseBuyingTeleport
public WithdrawLoadoutEvent setUseBuyingTeleport(boolean useBuyingTeleport)
-
addEquipmentLoadout
public WithdrawLoadoutEvent addEquipmentLoadout(EquipmentLoadout equipmentLoadout)
-
onStart
public void onStart()
- Overrides:
onStartin classAbstractEvent
-
onLoop
public int onLoop()
- Specified by:
onLoopin classAbstractEvent
-
getDefaultEventTimeout
public int getDefaultEventTimeout()
- Overrides:
getDefaultEventTimeoutin classAbstractEvent
-
-