Skip to content

Standalone API for the Minecraft LabyMod chat which doesn't requires the original game at all.

Notifications You must be signed in to change notification settings

Neocraftr/Standalone-LabyChatAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Standalone API for the Minecraft LabyMod chat which doesn't requires the original game at all.

Example usage:

LabyChatClient chatClient = new LabyChatClient(new PacketHandler() {
    @Override
    public void handle(PacketMessage packet) {
        System.out.println(String.format("Received message from %s: %s", packet.getSender().getGameProfile().getName(), packet.getMessage()));
        
        // Echo message back to sender
        chatClient.sendChatMessage(packet.getSender(), packet.getMessage());
    }
});

GameProfile gameProfile = new GameProfile(UUID.fromString("<minecraft uuid>"), "<minecraft playername>");
ChatUser user = new ChatUser(gameProfile, UserStatus.ONLINE, "Test");
String accessToken = "<minecraft access token>";

chatClient.connect(user, accessToken, new ConnectCallback() {
    @Override
    public void finished(boolean success, String errorMessage) {
        if(success) {
            System.out.println("Successfully connected to LabyChat :D");
        }
    }
});

About

Standalone API for the Minecraft LabyMod chat which doesn't requires the original game at all.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages