public class Login extends DefinedPacket
| Constructor and Description |
|---|
Login() |
Login(int entityId,
boolean hardcore,
short gameMode,
short previousGameMode,
Set<String> worldNames,
se.llbit.nbt.Tag dimensions,
Object dimension,
String worldName,
long seed,
short difficulty,
int 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() |
int |
getMaxPlayers() |
short |
getPreviousGameMode() |
long |
getSeed() |
int |
getViewDistance() |
String |
getWorldName() |
Set<String> |
getWorldNames() |
void |
handle(AbstractPacketHandler handler) |
int |
hashCode() |
boolean |
isDebug() |
boolean |
isFlat() |
boolean |
isHardcore() |
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 |
setHardcore(boolean hardcore) |
void |
setLevelType(String levelType) |
void |
setMaxPlayers(int 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, readString, readStringArray, readTag, readUUID, readVarInt, readVarInt, readVarIntArray, readVarShort, toArray, write, writeArray, writeString, writeString, writeStringArray, writeTag, writeUUID, writeVarInt, writeVarShortpublic Login()
public Login(int entityId,
boolean hardcore,
short gameMode,
short previousGameMode,
Set<String> worldNames,
se.llbit.nbt.Tag dimensions,
Object dimension,
String worldName,
long seed,
short difficulty,
int 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 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 boolean isHardcore()
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 int 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 setHardcore(boolean hardcore)
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(int 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 DefinedPacketpublic boolean equals(Object o)
equals in class DefinedPacketprotected boolean canEqual(Object other)
public int hashCode()
hashCode in class DefinedPacketCopyright © 2015–2020 WaterfallMC. All rights reserved.