Class LoginEvent
- java.lang.Object
-
- net.eternalclient.api.events.AbstractEvent
-
- net.eternalclient.api.events.random.events.LoginEvent
-
public class LoginEvent extends AbstractEvent implements Painter
This class represents the Login event of the bot, including methods for setting the world, OTP key, and handling login response and world change notifications.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classLoginEvent.State
-
Constructor Summary
Constructors Constructor Description LoginEvent()LoginEvent(java.lang.String username, java.lang.String password)LoginEvent(net.eternalclient.api.data.AccountType accountType, java.lang.String username, java.lang.String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidnotify(LoginMessageEvent event)voidnotify(LoginResponseEvent event)voidnotify(VarClientIntChangeEvent event)voidnotify(VarClientStrChangeEvent event)voidnotify(VarpbitChangeEvent event)voidnotify(VarpChangeEvent event)voidnotify(WorldChangedEvent event)intonLoop()voidonPaint(java.awt.Graphics2D gg)voidonStart()LoginEventsetOtpKey(java.lang.String otpKey)LoginEventsetRandomWorld(java.util.function.Predicate<World> predicate)LoginEventsetWorld(int worldNumber)LoginEventsetWorld(java.util.function.Predicate<World> predicate)-
Methods inherited from class net.eternalclient.api.events.AbstractEvent
execute, executed, getActiveEvent, getCompleteMessage, getDefaultEventTimeout, 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
-
-
-
-
Method Detail
-
setWorld
public LoginEvent setWorld(int worldNumber)
-
setWorld
public LoginEvent setWorld(java.util.function.Predicate<World> predicate)
-
setRandomWorld
public LoginEvent setRandomWorld(java.util.function.Predicate<World> predicate)
-
setOtpKey
public LoginEvent setOtpKey(java.lang.String otpKey)
-
onStart
public void onStart()
- Overrides:
onStartin classAbstractEvent
-
onLoop
public int onLoop()
- Specified by:
onLoopin classAbstractEvent
-
notify
@Notify public void notify(LoginMessageEvent event)
-
notify
@Notify public void notify(LoginResponseEvent event)
-
notify
@Notify public void notify(WorldChangedEvent event)
-
notify
@Notify public void notify(VarpChangeEvent event)
-
notify
@Notify public void notify(VarpbitChangeEvent event)
-
notify
@Notify public void notify(VarClientIntChangeEvent event)
-
notify
@Notify public void notify(VarClientStrChangeEvent event)
-
-