Skip to content

EditorClient

Package: com.hypixel.hytale.builtin.asseteditor

public class EditorClient implements PermissionHolder

Represents 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.

public EditorClient(String language, PlayerAuthentication auth, PacketHandler packetHandler)
public EditorClient(String language, UUID uuid, String username, PacketHandler packetHandler)
@Deprecated
public EditorClient(PlayerRef playerRef)

The deprecated constructor creates a mock client from a PlayerRef, used for legacy in-game JSON update handling.

MethodReturnsDescription
getLanguage()StringClient’s language code
setLanguage(String)voidUpdates the language
getUuid()UUIDPlayer UUID
getUsername()StringPlayer username
getAuth()PlayerAuthenticationAuthentication info (nullable)
getPacketHandler()PacketHandlerUnderlying network handler
tryGetPlayer()PlayerRefResolves the player from Universe.get() (nullable)
hasPermission(String)booleanDelegates to PermissionsModule
hasPermission(String, boolean)booleanDelegates to PermissionsModule with default
sendPopupNotification(AssetEditorPopupNotificationType, Message)voidSends a popup notification to the editor UI
sendSuccessReply(int)voidSends a success reply for a token
sendSuccessReply(int, Message)voidSends a success reply with a message
sendFailureReply(int, Message)voidSends 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.