EditorClient

public class EditorClient implements PermissionHolder

Class EditorClient. Provides editorclient functionality for the Hytale server.

java.lang.Object > EditorClient

Field Summary

language

private String language

Field language.

msg

final FormattedMessage msg

Field msg.

Method Detail

EditorClient

public public EditorClient (final String language, @Nonnull final PlayerAuthentication auth, final PacketHandler packetHandler)

Method EditorClient.

Parameters:
final String language
@Nonnull final PlayerAuthentication auth
final PacketHandler packetHandler

getLanguage

public String getLanguage ()

Method getLanguage.

setLanguage

public void setLanguage (final String language)

Method setLanguage.

Parameters:
final String language

getUuid

public UUID getUuid ()

Method getUuid.

getUsername

public String getUsername ()

Method getUsername.

getAuth

public PlayerAuthentication getAuth ()

Method getAuth.

getPacketHandler

public PacketHandler getPacketHandler ()

Method getPacketHandler.

tryGetPlayer

public PlayerRef tryGetPlayer ()

Method tryGetPlayer.

hasPermission

public boolean hasPermission (@Nonnull final String id)

Method hasPermission.

Parameters:
@Nonnull final String id

sendPopupNotification

public void sendPopupNotification (final AssetEditorPopupNotificationType type, @Nonnull final Message message)

Method sendPopupNotification.

Parameters:
final AssetEditorPopupNotificationType type
@Nonnull final Message message

AssetEditorPopupNotification

public new AssetEditorPopupNotification (type, msg)

Method AssetEditorPopupNotification.

Parameters:
type type
msg msg

sendSuccessReply

public void sendSuccessReply (final int token)

Method sendSuccessReply.

Parameters:
final int token

SuccessReply

public new SuccessReply (token, msg)

Method SuccessReply.

Parameters:
token token
msg msg

sendFailureReply

public void sendFailureReply (final int token, @Nonnull final Message message)

Method sendFailureReply.

Parameters:
final int token
@Nonnull final Message message

FailureReply

public new FailureReply (token, msg)

Method FailureReply.

Parameters:
token token
msg msg