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
-
Constructor Summary
ConstructorsConstructorDescriptionLogin()Login(int entityId, boolean hardcore, short gameMode, short previousGameMode, Set<String> worldNames, Tag dimensions, Object dimension, String worldName, long seed, short difficulty, int maxPlayers, String levelType, int viewDistance, int simulationDistance, boolean reducedDebugInfo, boolean normalRespawn, boolean limitedCrafting, boolean debug, boolean flat, Location deathLocation, int portalCooldown, int seaLevel, boolean secureProfile) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanshortintshortintintshortintlonggetSeed()intintvoidhandle(AbstractPacketHandler handler) inthashCode()booleanisDebug()booleanisFlat()booleanbooleanbooleanbooleanbooleanvoidread(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion) voidsetDeathLocation(Location deathLocation) voidsetDebug(boolean debug) voidsetDifficulty(short difficulty) voidsetDimension(Object dimension) voidsetDimensions(Tag dimensions) voidsetEntityId(int entityId) voidsetFlat(boolean flat) voidsetGameMode(short gameMode) voidsetHardcore(boolean hardcore) voidsetLevelType(String levelType) voidsetLimitedCrafting(boolean limitedCrafting) voidsetMaxPlayers(int maxPlayers) voidsetNormalRespawn(boolean normalRespawn) voidsetPortalCooldown(int portalCooldown) voidsetPreviousGameMode(short previousGameMode) voidsetReducedDebugInfo(boolean reducedDebugInfo) voidsetSeaLevel(int seaLevel) voidsetSecureProfile(boolean secureProfile) voidsetSeed(long seed) voidsetSimulationDistance(int simulationDistance) voidsetViewDistance(int viewDistance) voidsetWorldName(String worldName) voidsetWorldNames(Set<String> worldNames) toString()voidwrite(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion) Methods inherited from class net.md_5.bungee.protocol.DefinedPacket
nextProtocol, read, read, readArray, readArray, readBaseComponent, readBaseComponent, readComponentStyle, readEitherBaseComponent, readEnumSet, readFixedBitSet, readLengthPrefixed, readNullable, readNumberFormat, readProperties, readPublicKey, readString, readString, readStringArray, readStringMapKey, readTag, readTag, readUUID, readVarInt, readVarInt, readVarIntArray, readVarShort, setVarInt, toArray, write, write, writeArray, writeBaseComponent, writeComponentStyle, writeEitherBaseComponent, writeEnumSet, writeFixedBitSet, writeLengthPrefixed, writeNullable, writeNumberFormat, writeProperties, writePublicKey, writeString, writeString, writeStringArray, writeTag, writeUUID, writeVarInt, writeVarShort
-
Constructor Details
-
Login
public Login() -
Login
public Login(int entityId, boolean hardcore, short gameMode, short previousGameMode, Set<String> worldNames, Tag dimensions, Object dimension, String worldName, long seed, short difficulty, int maxPlayers, String levelType, int viewDistance, int simulationDistance, boolean reducedDebugInfo, boolean normalRespawn, boolean limitedCrafting, boolean debug, boolean flat, Location deathLocation, int portalCooldown, int seaLevel, boolean secureProfile)
-
-
Method Details
-
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
- Specified by:
handlein classDefinedPacket- Throws:
Exception
-
getEntityId
public int getEntityId() -
isHardcore
public boolean isHardcore() -
getGameMode
public short getGameMode() -
getPreviousGameMode
public short getPreviousGameMode() -
getWorldNames
-
getDimensions
-
getDimension
-
getWorldName
-
getSeed
public long getSeed() -
getDifficulty
public short getDifficulty() -
getMaxPlayers
public int getMaxPlayers() -
getLevelType
-
getViewDistance
public int getViewDistance() -
getSimulationDistance
public int getSimulationDistance() -
isReducedDebugInfo
public boolean isReducedDebugInfo() -
isNormalRespawn
public boolean isNormalRespawn() -
isLimitedCrafting
public boolean isLimitedCrafting() -
isDebug
public boolean isDebug() -
isFlat
public boolean isFlat() -
getDeathLocation
-
getPortalCooldown
public int getPortalCooldown() -
getSeaLevel
public int getSeaLevel() -
isSecureProfile
public boolean isSecureProfile() -
setEntityId
public void setEntityId(int entityId) -
setHardcore
public void setHardcore(boolean hardcore) -
setGameMode
public void setGameMode(short gameMode) -
setPreviousGameMode
public void setPreviousGameMode(short previousGameMode) -
setWorldNames
-
setDimensions
-
setDimension
-
setWorldName
-
setSeed
public void setSeed(long seed) -
setDifficulty
public void setDifficulty(short difficulty) -
setMaxPlayers
public void setMaxPlayers(int maxPlayers) -
setLevelType
-
setViewDistance
public void setViewDistance(int viewDistance) -
setSimulationDistance
public void setSimulationDistance(int simulationDistance) -
setReducedDebugInfo
public void setReducedDebugInfo(boolean reducedDebugInfo) -
setNormalRespawn
public void setNormalRespawn(boolean normalRespawn) -
setLimitedCrafting
public void setLimitedCrafting(boolean limitedCrafting) -
setDebug
public void setDebug(boolean debug) -
setFlat
public void setFlat(boolean flat) -
setDeathLocation
-
setPortalCooldown
public void setPortalCooldown(int portalCooldown) -
setSeaLevel
public void setSeaLevel(int seaLevel) -
setSecureProfile
public void setSecureProfile(boolean secureProfile) -
toString
- Specified by:
toStringin classDefinedPacket
-
equals
- Specified by:
equalsin classDefinedPacket
-
canEqual
-
hashCode
public int hashCode()- Specified by:
hashCodein classDefinedPacket
-