public class Login extends DefinedPacket
Constructor and Description |
---|
Login() |
Login(int entityId,
short gameMode,
short previousGameMode,
Set<String> worldNames,
se.llbit.nbt.Tag dimensions,
Object dimension,
String worldName,
long seed,
short difficulty,
short maxPlayers,
String levelType,
int viewDistance,
boolean reducedDebugInfo,
boolean normalRespawn,
boolean debug,
boolean flat) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
short |
getDifficulty() |
Object |
getDimension() |
se.llbit.nbt.Tag |
getDimensions() |
int |
getEntityId() |
short |
getGameMode() |
String |
getLevelType() |
short |
getMaxPlayers() |
short |
getPreviousGameMode() |
long |
getSeed() |
int |
getViewDistance() |
String |
getWorldName() |
Set<String> |
getWorldNames() |
void |
handle(AbstractPacketHandler handler) |
int |
hashCode() |
boolean |
isDebug() |
boolean |
isFlat() |
boolean |
isNormalRespawn() |
boolean |
isReducedDebugInfo() |
void |
read(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
void |
setDebug(boolean debug) |
void |
setDifficulty(short difficulty) |
void |
setDimension(Object dimension) |
void |
setDimensions(se.llbit.nbt.Tag dimensions) |
void |
setEntityId(int entityId) |
void |
setFlat(boolean flat) |
void |
setGameMode(short gameMode) |
void |
setLevelType(String levelType) |
void |
setMaxPlayers(short maxPlayers) |
void |
setNormalRespawn(boolean normalRespawn) |
void |
setPreviousGameMode(short previousGameMode) |
void |
setReducedDebugInfo(boolean reducedDebugInfo) |
void |
setSeed(long seed) |
void |
setViewDistance(int viewDistance) |
void |
setWorldName(String worldName) |
void |
setWorldNames(Set<String> worldNames) |
String |
toString() |
void |
write(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
read, readArray, readArray, readString, readStringArray, readUUID, readVarInt, readVarInt, readVarIntArray, readVarShort, toArray, write, writeArray, writeString, writeStringArray, writeUUID, writeVarInt, writeVarShort
public Login()
public Login(int entityId, short gameMode, short previousGameMode, Set<String> worldNames, se.llbit.nbt.Tag dimensions, Object dimension, String worldName, long seed, short difficulty, short maxPlayers, String levelType, int viewDistance, boolean reducedDebugInfo, boolean normalRespawn, boolean debug, boolean flat)
public void read(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion)
read
in class DefinedPacket
public void write(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion)
write
in class DefinedPacket
public void handle(AbstractPacketHandler handler) throws Exception
handle
in class DefinedPacket
Exception
public int getEntityId()
public short getGameMode()
public short getPreviousGameMode()
public se.llbit.nbt.Tag getDimensions()
public Object getDimension()
public String getWorldName()
public long getSeed()
public short getDifficulty()
public short getMaxPlayers()
public String getLevelType()
public int getViewDistance()
public boolean isReducedDebugInfo()
public boolean isNormalRespawn()
public boolean isDebug()
public boolean isFlat()
public void setEntityId(int entityId)
public void setGameMode(short gameMode)
public void setPreviousGameMode(short previousGameMode)
public void setDimensions(se.llbit.nbt.Tag dimensions)
public void setDimension(Object dimension)
public void setWorldName(String worldName)
public void setSeed(long seed)
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 void setNormalRespawn(boolean normalRespawn)
public void setDebug(boolean debug)
public void setFlat(boolean flat)
public String toString()
toString
in class DefinedPacket
public boolean equals(Object o)
equals
in class DefinedPacket
protected boolean canEqual(Object other)
public int hashCode()
hashCode
in class DefinedPacket
Copyright © 2012–2020 SpigotMC. All rights reserved.