Class WithdrawEvent
- java.lang.Object
-
- net.eternalclient.api.events.AbstractEvent
-
- net.eternalclient.api.events.bank.withdraw.WithdrawEvent
-
public class WithdrawEvent extends AbstractEvent
WithdrawEvent is a class that represents a withdraw event, allowing the bot to withdraw items from the bank.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
WithdrawEvent.State
-
Constructor Summary
Constructors Constructor Description WithdrawEvent(int itemId, int count)
WithdrawEvent(java.lang.String itemName, int count)
WithdrawEvent(java.util.function.Predicate<Item> predicate, int count)
WithdrawEvent(Item item, int count)
WithdrawEvent(ItemVariant variant, int count)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WithdrawEvent
asNote()
WithdrawEvent
asNote(boolean noted)
int
getDefaultEventTimeout()
int
onLoop()
void
onStart()
WithdrawEvent
setCompleteOnInteraction()
WithdrawEvent
setKeepBankOpen(boolean keepBankOpen)
-
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
-
WithdrawEvent
public WithdrawEvent(int itemId, int count)
-
WithdrawEvent
public WithdrawEvent(java.lang.String itemName, int count)
-
WithdrawEvent
public WithdrawEvent(Item item, int count)
-
WithdrawEvent
public WithdrawEvent(java.util.function.Predicate<Item> predicate, int count)
-
WithdrawEvent
public WithdrawEvent(ItemVariant variant, int count)
-
-
Method Detail
-
asNote
public WithdrawEvent asNote()
-
asNote
public WithdrawEvent asNote(boolean noted)
-
setKeepBankOpen
public WithdrawEvent setKeepBankOpen(boolean keepBankOpen)
-
setCompleteOnInteraction
public WithdrawEvent setCompleteOnInteraction()
-
onStart
public void onStart()
- Overrides:
onStart
in classAbstractEvent
-
onLoop
public int onLoop()
- Specified by:
onLoop
in classAbstractEvent
-
getDefaultEventTimeout
public int getDefaultEventTimeout()
- Overrides:
getDefaultEventTimeout
in classAbstractEvent
-
-