Class EditorClient
java.lang.Object
com.hypixel.hytale.builtin.asseteditor.EditorClient
- All Implemented Interfaces:
PermissionHolder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PlayerAuthenticationprivate Stringprivate final PacketHandlerprivate final Stringprivate final UUID -
Constructor Summary
ConstructorsConstructorDescriptionEditorClient(PlayerRef playerRef) Deprecated.EditorClient(String language, PlayerAuthentication auth, PacketHandler packetHandler) EditorClient(String language, UUID uuid, String username, PacketHandler packetHandler) -
Method Summary
Modifier and TypeMethodDescriptiongetAuth()getUuid()booleanhasPermission(String id) booleanhasPermission(String id, boolean def) voidsendFailureReply(int token, Message message) voidsendPopupNotification(AssetEditorPopupNotificationType type, Message message) voidsendSuccessReply(int token) voidsendSuccessReply(int token, Message message) voidsetLanguage(String language)
-
Field Details
-
language
-
uuid
-
username
-
auth
-
packetHandler
-
-
Constructor Details
-
EditorClient
public EditorClient(String language, @Nonnull PlayerAuthentication auth, PacketHandler packetHandler) -
EditorClient
-
EditorClient
Deprecated.
-
-
Method Details
-
getLanguage
-
setLanguage
-
getUuid
-
getUsername
-
getAuth
-
getPacketHandler
-
tryGetPlayer
-
hasPermission
- Specified by:
hasPermissionin interfacePermissionHolder
-
hasPermission
- Specified by:
hasPermissionin interfacePermissionHolder
-
sendPopupNotification
-
sendSuccessReply
public void sendSuccessReply(int token) -
sendSuccessReply
-
sendFailureReply
-