public class Player extends Object
| Constructor and Description |
|---|
Player(com.fasterxml.jackson.databind.JsonNode extraData,
com.nukkitx.protocol.bedrock.BedrockServerSession session) |
| Modifier and Type | Method and Description |
|---|---|
void |
connectToProxy()
Send the player to the Geyser proxy server or straight to the bedrock server if it is
|
void |
resendWindow() |
void |
sendStartGame()
Send a few different packets to get the client to load in
|
void |
sendToServer(Server server) |
void |
sendWindow(FormID id,
org.geysermc.common.window.FormWindow window)
Send a window with the specified id and content
Also cache it against the player for later use
|
public Player(com.fasterxml.jackson.databind.JsonNode extraData,
com.nukkitx.protocol.bedrock.BedrockServerSession session)
public void sendStartGame()
public void sendWindow(FormID id, org.geysermc.common.window.FormWindow window)
id - The FormID to use for the formwindow - The FormWindow to turn into json and sendpublic void resendWindow()
public void connectToProxy()
public void sendToServer(Server server)
Copyright © 2021 GeyserMC. All rights reserved.