public class Login extends DefinedPacket
| Constructor and Description |
|---|
Login() |
Login(int entityId,
short gameMode,
int dimension,
long seed,
short difficulty,
short maxPlayers,
String levelType,
int viewDistance,
boolean reducedDebugInfo,
boolean normalRespawn,
boolean isDebug,
boolean isFlat,
String dimensionCodecName,
NBTTag codecTag,
String[] worlds,
String world,
short previousGamemode) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
NBTTag |
getCodecTag() |
short |
getDifficulty() |
int |
getDimension() |
String |
getDimensionCodecName() |
int |
getEntityId() |
short |
getGameMode() |
String |
getLevelType() |
short |
getMaxPlayers() |
short |
getPreviousGamemode() |
long |
getSeed() |
int |
getViewDistance() |
String |
getWorld() |
String[] |
getWorlds() |
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 |
setCodecTag(NBTTag codecTag) |
void |
setDebug(boolean isDebug) |
void |
setDifficulty(short difficulty) |
void |
setDimension(int dimension) |
void |
setDimensionCodecName(String dimensionCodecName) |
void |
setEntityId(int entityId) |
void |
setFlat(boolean isFlat) |
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 |
setWorld(String world) |
void |
setWorlds(String[] worlds) |
String |
toString() |
void |
write(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
read, readArray, readArray, readNBT, readString, readString, readStringArray, readUUID, readUUIDIntArray, readVarInt, readVarInt, readVarIntArray, readVarShort, toArray, write, writeArray, writeNBT, writeString, writeString, writeStringArray, writeUUID, writeUUIDIntArray, writeVarInt, writeVarShortpublic Login()
public Login(int entityId,
short gameMode,
int dimension,
long seed,
short difficulty,
short maxPlayers,
String levelType,
int viewDistance,
boolean reducedDebugInfo,
boolean normalRespawn,
boolean isDebug,
boolean isFlat,
String dimensionCodecName,
NBTTag codecTag,
String[] worlds,
String world,
short previousGamemode)
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 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 String getDimensionCodecName()
public NBTTag getCodecTag()
public String[] getWorlds()
public String getWorld()
public short getPreviousGamemode()
public void setEntityId(int entityId)
public void setGameMode(short gameMode)
public void setDimension(int dimension)
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 isDebug)
public void setFlat(boolean isFlat)
public void setDimensionCodecName(String dimensionCodecName)
public void setCodecTag(NBTTag codecTag)
public void setWorlds(String[] worlds)
public void setWorld(String world)
public void setPreviousGamemode(short previousGamemode)
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.