PlayerSetupConnectEvent

public class PlayerSetupConnectEvent implements IEvent, ICancellable

Event fired when playersetupconnect occurs. Listen for this event using EventBus.register.

java.lang.Object > PlayerSetupConnectEvent

Field Summary

cancelled

private boolean cancelled

Field cancelled.

reason

private String reason

Field reason.

clientReferral

private ClientReferral clientReferral

Field clientReferral.

MAX_REFERRAL_DATA_SIZE

final int MAX_REFERRAL_DATA_SIZE

Field MAX_REFERRAL_DATA_SIZE.

handle

final MethodHandle handle

Field handle.

Method Detail

PlayerSetupConnectEvent

public public PlayerSetupConnectEvent (final PacketHandler packetHandler, final String username, final UUID uuid, final PlayerAuthentication auth, final byte[] referralData, final HostAddress referralSource)

Method PlayerSetupConnectEvent.

Parameters:
final PacketHandler packetHandler
final String username
final UUID uuid
final PlayerAuthentication auth
final byte[] referralData
final HostAddress referralSource

getPacketHandler

public PacketHandler getPacketHandler ()

Method getPacketHandler.

getUuid

public UUID getUuid ()

Method getUuid.

getUsername

public String getUsername ()

Method getUsername.

getAuth

public PlayerAuthentication getAuth ()

Method getAuth.

getReferralData

public byte[] getReferralData ()

Method getReferralData.

isReferralConnection

public boolean isReferralConnection ()

Method isReferralConnection.

getReferralSource

public HostAddress getReferralSource ()

Method getReferralSource.

getClientReferral

public ClientReferral getClientReferral ()

Method getClientReferral.

referToServer

public void referToServer (@Nonnull final String host, final int port)

Method referToServer.

Parameters:
@Nonnull final String host
final int port

ClientReferral

public new ClientReferral (new HostAddress(host, (short)

Method ClientReferral.

Parameters:
new HostAddress(host
(short (short

getReason

public String getReason ()

Method getReason.

setReason

public void setReason (final String reason)

Method setReason.

Parameters:
final String reason

isCancelled

public boolean isCancelled ()

Method isCancelled.

setCancelled

public void setCancelled (final boolean cancelled)

Method setCancelled.

Parameters:
final boolean cancelled

toString

public String toString ()

Method toString.

handle

static MethodHandle handle ()

Method handle.

ensureHandle

static MethodHandle ensureHandle ()

Method ensureHandle.

invoke

static String invoke (int p0)

Method invoke.

Parameters:
int p0