Package net.eternalclient.api.events.ge
Class GrandExchangeEvent
- java.lang.Object
-
- net.eternalclient.api.events.AbstractEvent
-
- net.eternalclient.api.events.ge.GrandExchangeEvent
-
public class GrandExchangeEvent extends AbstractEvent
This class represents a Grand Exchange event. It handles buying and selling items on the Grand Exchange.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
GrandExchangeEvent.State
-
Constructor Summary
Constructors Constructor Description GrandExchangeEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GrandExchangeEvent
addBuyItems(java.util.Collection<BuyItem> collection)
GrandExchangeEvent
addBuyItems(BuyItem... buyItems)
GrandExchangeEvent
addSellItems(java.util.Collection<SellItem> collection)
GrandExchangeEvent
addSellItems(java.util.Collection<SellItem> collection, boolean allowNonTradable)
GrandExchangeEvent
addSellItems(SellItem... sellItems)
int
getDefaultEventTimeout()
void
notify(GameTickEvent event)
void
notify(GrandExchangeOfferChangedEvent event)
void
onComplete()
int
onLoop()
void
onStart()
-
Methods inherited from class net.eternalclient.api.events.AbstractEvent
execute, executed, getActiveEvent, getCompleteMessage, getEventCompleteCondition, getEventCompleteTimeout, getEventInterruptCondition, getEventTimeout, getFailMessage, getRunLoggedOut, isEventCompleted, isEventFailed, isEventInterrupted, 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
-
-
-
-
Method Detail
-
onStart
public void onStart()
- Overrides:
onStart
in classAbstractEvent
-
onComplete
public void onComplete()
- Overrides:
onComplete
in classAbstractEvent
-
addBuyItems
public GrandExchangeEvent addBuyItems(BuyItem... buyItems)
-
addBuyItems
public GrandExchangeEvent addBuyItems(java.util.Collection<BuyItem> collection)
-
addSellItems
public GrandExchangeEvent addSellItems(SellItem... sellItems)
-
addSellItems
public GrandExchangeEvent addSellItems(java.util.Collection<SellItem> collection)
-
addSellItems
public GrandExchangeEvent addSellItems(java.util.Collection<SellItem> collection, boolean allowNonTradable)
-
onLoop
public int onLoop()
- Specified by:
onLoop
in classAbstractEvent
-
notify
@Notify public void notify(GrandExchangeOfferChangedEvent event)
-
notify
@Notify public void notify(GameTickEvent event)
-
getDefaultEventTimeout
public int getDefaultEventTimeout()
- Overrides:
getDefaultEventTimeout
in classAbstractEvent
-
-