public class Login extends DefinedPacket
| Constructor and Description |
|---|
Login() |
Login(int entityId,
short gameMode,
int dimension,
short difficulty,
short maxPlayers,
String levelType,
int viewDistance,
boolean reducedDebugInfo) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
short |
getDifficulty() |
int |
getDimension() |
int |
getEntityId() |
short |
getGameMode() |
String |
getLevelType() |
short |
getMaxPlayers() |
int |
getViewDistance() |
void |
handle(AbstractPacketHandler handler) |
int |
hashCode() |
boolean |
isReducedDebugInfo() |
void |
read(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
void |
setDifficulty(short difficulty) |
void |
setDimension(int dimension) |
void |
setEntityId(int entityId) |
void |
setGameMode(short gameMode) |
void |
setLevelType(String levelType) |
void |
setMaxPlayers(short maxPlayers) |
void |
setReducedDebugInfo(boolean reducedDebugInfo) |
void |
setViewDistance(int viewDistance) |
String |
toString() |
void |
write(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
read, readArray, readArray, readString, readString, readStringArray, readUUID, readVarInt, readVarInt, readVarIntArray, readVarShort, toArray, write, writeArray, writeString, writeString, writeStringArray, writeUUID, writeVarInt, writeVarShortpublic Login()
public Login(int entityId,
short gameMode,
int dimension,
short difficulty,
short maxPlayers,
String levelType,
int viewDistance,
boolean reducedDebugInfo)
public void read(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion)
read in class DefinedPacketpublic void write(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion)
write in class DefinedPacketpublic void handle(AbstractPacketHandler handler) throws Exception
handle in class DefinedPacketExceptionpublic int getEntityId()
public short getGameMode()
public int getDimension()
public short getDifficulty()
public short getMaxPlayers()
public String getLevelType()
public int getViewDistance()
public boolean isReducedDebugInfo()
public void setEntityId(int entityId)
public void setGameMode(short gameMode)
public void setDimension(int dimension)
public void setDifficulty(short difficulty)
public void setMaxPlayers(short maxPlayers)
public void setLevelType(String levelType)
public void setViewDistance(int viewDistance)
public void setReducedDebugInfo(boolean reducedDebugInfo)
public String toString()
toString in class DefinedPacketpublic boolean equals(Object o)
equals in class DefinedPacketprotected boolean canEqual(Object other)
public int hashCode()
hashCode in class DefinedPacketCopyright © 2015–2019 WaterfallMC. All rights reserved.