Package net.md_5.bungee.protocol.packet
Class Login
- java.lang.Object
-
- net.md_5.bungee.protocol.DefinedPacket
-
- net.md_5.bungee.protocol.packet.Login
-
public class Login extends DefinedPacket
-
-
Constructor Summary
Constructors Constructor 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, int simulationDistance, boolean reducedDebugInfo, boolean normalRespawn, boolean debug, boolean flat, Location deathLocation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)LocationgetDeathLocation()shortgetDifficulty()ObjectgetDimension()se.llbit.nbt.TaggetDimensions()intgetEntityId()shortgetGameMode()StringgetLevelType()intgetMaxPlayers()shortgetPreviousGameMode()longgetSeed()intgetSimulationDistance()intgetViewDistance()StringgetWorldName()Set<String>getWorldNames()voidhandle(AbstractPacketHandler handler)inthashCode()booleanisDebug()booleanisFlat()booleanisHardcore()booleanisNormalRespawn()booleanisReducedDebugInfo()voidread(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion)voidsetDeathLocation(Location deathLocation)voidsetDebug(boolean debug)voidsetDifficulty(short difficulty)voidsetDimension(Object dimension)voidsetDimensions(se.llbit.nbt.Tag dimensions)voidsetEntityId(int entityId)voidsetFlat(boolean flat)voidsetGameMode(short gameMode)voidsetHardcore(boolean hardcore)voidsetLevelType(String levelType)voidsetMaxPlayers(int maxPlayers)voidsetNormalRespawn(boolean normalRespawn)voidsetPreviousGameMode(short previousGameMode)voidsetReducedDebugInfo(boolean reducedDebugInfo)voidsetSeed(long seed)voidsetSimulationDistance(int simulationDistance)voidsetViewDistance(int viewDistance)voidsetWorldName(String worldName)voidsetWorldNames(Set<String> worldNames)StringtoString()voidwrite(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion)-
Methods inherited from class net.md_5.bungee.protocol.DefinedPacket
expectedMaxLength, expectedMinLength, read, readArray, readArray, readEnumSet, readFixedBitSet, readProperties, readPublicKey, readString, readString, readStringArray, readTag, readUUID, readVarInt, readVarInt, readVarIntArray, readVarShort, toArray, write, writeArray, writeEnumSet, writeFixedBitSet, writeProperties, writePublicKey, writeString, writeString, writeStringArray, writeTag, writeUUID, writeVarInt, writeVarShort
-
-
-
-
Constructor Detail
-
Login
public Login()
-
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, int simulationDistance, boolean reducedDebugInfo, boolean normalRespawn, boolean debug, boolean flat, Location deathLocation)
-
-
Method Detail
-
read
public void read(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion)- Overrides:
readin classDefinedPacket
-
write
public void write(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion)- Overrides:
writein classDefinedPacket
-
handle
public void handle(AbstractPacketHandler handler) throws Exception
- Specified by:
handlein classDefinedPacket- Throws:
Exception
-
getEntityId
public int getEntityId()
-
isHardcore
public boolean isHardcore()
-
getGameMode
public short getGameMode()
-
getPreviousGameMode
public short getPreviousGameMode()
-
getDimensions
public se.llbit.nbt.Tag getDimensions()
-
getDimension
public Object getDimension()
-
getWorldName
public String getWorldName()
-
getSeed
public long getSeed()
-
getDifficulty
public short getDifficulty()
-
getMaxPlayers
public int getMaxPlayers()
-
getLevelType
public String getLevelType()
-
getViewDistance
public int getViewDistance()
-
getSimulationDistance
public int getSimulationDistance()
-
isReducedDebugInfo
public boolean isReducedDebugInfo()
-
isNormalRespawn
public boolean isNormalRespawn()
-
isDebug
public boolean isDebug()
-
isFlat
public boolean isFlat()
-
getDeathLocation
public Location getDeathLocation()
-
setEntityId
public void setEntityId(int entityId)
-
setHardcore
public void setHardcore(boolean hardcore)
-
setGameMode
public void setGameMode(short gameMode)
-
setPreviousGameMode
public void setPreviousGameMode(short previousGameMode)
-
setDimensions
public void setDimensions(se.llbit.nbt.Tag dimensions)
-
setDimension
public void setDimension(Object dimension)
-
setWorldName
public void setWorldName(String worldName)
-
setSeed
public void setSeed(long seed)
-
setDifficulty
public void setDifficulty(short difficulty)
-
setMaxPlayers
public void setMaxPlayers(int maxPlayers)
-
setLevelType
public void setLevelType(String levelType)
-
setViewDistance
public void setViewDistance(int viewDistance)
-
setSimulationDistance
public void setSimulationDistance(int simulationDistance)
-
setReducedDebugInfo
public void setReducedDebugInfo(boolean reducedDebugInfo)
-
setNormalRespawn
public void setNormalRespawn(boolean normalRespawn)
-
setDebug
public void setDebug(boolean debug)
-
setFlat
public void setFlat(boolean flat)
-
setDeathLocation
public void setDeathLocation(Location deathLocation)
-
toString
public String toString()
- Specified by:
toStringin classDefinedPacket
-
equals
public boolean equals(Object o)
- Specified by:
equalsin classDefinedPacket
-
canEqual
protected boolean canEqual(Object other)
-
hashCode
public int hashCode()
- Specified by:
hashCodein classDefinedPacket
-
-