public class MinecraftProtocol
extends com.github.steveice10.packetlib.packet.PacketProtocol
| Constructor and Description |
|---|
MinecraftProtocol(com.github.steveice10.mc.auth.data.GameProfile profile,
String clientToken,
String accessToken) |
MinecraftProtocol(String username) |
MinecraftProtocol(String username,
String password) |
MinecraftProtocol(String username,
String password,
Proxy proxy) |
MinecraftProtocol(String username,
String clientToken,
String accessToken) |
MinecraftProtocol(String username,
String clientToken,
String accessToken,
Proxy proxy) |
MinecraftProtocol(SubProtocol subProtocol) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessToken() |
String |
getClientToken() |
com.github.steveice10.packetlib.crypt.PacketEncryption |
getEncryption() |
com.github.steveice10.packetlib.packet.PacketHeader |
getPacketHeader() |
com.github.steveice10.mc.auth.data.GameProfile |
getProfile() |
String |
getSRVRecordPrefix() |
SubProtocol |
getSubProtocol() |
void |
newClientSession(com.github.steveice10.packetlib.Client client,
com.github.steveice10.packetlib.Session session) |
void |
newServerSession(com.github.steveice10.packetlib.Server server,
com.github.steveice10.packetlib.Session session) |
public MinecraftProtocol(SubProtocol subProtocol)
public MinecraftProtocol(String username)
public MinecraftProtocol(String username, String password) throws com.github.steveice10.mc.auth.exception.request.RequestException
com.github.steveice10.mc.auth.exception.request.RequestExceptionpublic MinecraftProtocol(String username, String clientToken, String accessToken) throws com.github.steveice10.mc.auth.exception.request.RequestException
com.github.steveice10.mc.auth.exception.request.RequestExceptionpublic MinecraftProtocol(String username, String password, Proxy proxy) throws com.github.steveice10.mc.auth.exception.request.RequestException
com.github.steveice10.mc.auth.exception.request.RequestExceptionpublic MinecraftProtocol(String username, String clientToken, String accessToken, Proxy proxy) throws com.github.steveice10.mc.auth.exception.request.RequestException
com.github.steveice10.mc.auth.exception.request.RequestExceptionpublic com.github.steveice10.mc.auth.data.GameProfile getProfile()
public String getClientToken()
public String getAccessToken()
public String getSRVRecordPrefix()
getSRVRecordPrefix in class com.github.steveice10.packetlib.packet.PacketProtocolpublic com.github.steveice10.packetlib.packet.PacketHeader getPacketHeader()
getPacketHeader in class com.github.steveice10.packetlib.packet.PacketProtocolpublic com.github.steveice10.packetlib.crypt.PacketEncryption getEncryption()
getEncryption in class com.github.steveice10.packetlib.packet.PacketProtocolpublic void newClientSession(com.github.steveice10.packetlib.Client client,
com.github.steveice10.packetlib.Session session)
newClientSession in class com.github.steveice10.packetlib.packet.PacketProtocolpublic void newServerSession(com.github.steveice10.packetlib.Server server,
com.github.steveice10.packetlib.Session session)
newServerSession in class com.github.steveice10.packetlib.packet.PacketProtocolpublic SubProtocol getSubProtocol()
Copyright © 2020. All rights reserved.