EditorClient
Package: com.hypixel.hytale.builtin.asseteditor
public class EditorClient implements PermissionHolderRepresents a connected asset editor session. Wraps the client’s identity (UUID, username), language preference, authentication credentials, and packet handler. Provides convenience methods for sending popup notifications and success/failure replies.
Constructors
Section titled “Constructors”public EditorClient(String language, PlayerAuthentication auth, PacketHandler packetHandler)public EditorClient(String language, UUID uuid, String username, PacketHandler packetHandler)@Deprecatedpublic EditorClient(PlayerRef playerRef)The deprecated constructor creates a mock client from a PlayerRef, used for legacy in-game JSON update handling.
Key Methods
Section titled “Key Methods”| Method | Returns | Description |
|---|---|---|
getLanguage() | String | Client’s language code |
setLanguage(String) | void | Updates the language |
getUuid() | UUID | Player UUID |
getUsername() | String | Player username |
getAuth() | PlayerAuthentication | Authentication info (nullable) |
getPacketHandler() | PacketHandler | Underlying network handler |
tryGetPlayer() | PlayerRef | Resolves the player from Universe.get() (nullable) |
hasPermission(String) | boolean | Delegates to PermissionsModule |
hasPermission(String, boolean) | boolean | Delegates to PermissionsModule with default |
sendPopupNotification(AssetEditorPopupNotificationType, Message) | void | Sends a popup notification to the editor UI |
sendSuccessReply(int) | void | Sends a success reply for a token |
sendSuccessReply(int, Message) | void | Sends a success reply with a message |
sendFailureReply(int, Message) | void | Sends a failure reply with a message |
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.