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 class
LoginEvent.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 void
notify(LoginMessageEvent event)
void
notify(LoginResponseEvent event)
void
notify(VarClientIntChangeEvent event)
void
notify(VarClientStrChangeEvent event)
void
notify(VarpbitChangeEvent event)
void
notify(VarpChangeEvent event)
void
notify(WorldChangedEvent event)
int
onLoop()
void
onPaint(java.awt.Graphics2D gg)
void
onStart()
LoginEvent
setOtpKey(java.lang.String otpKey)
LoginEvent
setRandomWorld(java.util.function.Predicate<World> predicate)
LoginEvent
setWorld(int worldNumber)
LoginEvent
setWorld(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:
onStart
in classAbstractEvent
-
onLoop
public int onLoop()
- Specified by:
onLoop
in 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)
-
-