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, 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, int portalCooldown) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
short
se.llbit.nbt.Tag
int
short
int
int
short
long
getSeed()
int
int
void
handle
(AbstractPacketHandler handler) int
hashCode()
boolean
isDebug()
boolean
isFlat()
boolean
boolean
boolean
void
read
(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion) void
setDeathLocation
(Location deathLocation) 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
setPortalCooldown
(int portalCooldown) void
setPreviousGameMode
(short previousGameMode) void
setReducedDebugInfo
(boolean reducedDebugInfo) void
setSeed
(long seed) void
setSimulationDistance
(int simulationDistance) void
setViewDistance
(int viewDistance) void
setWorldName
(String worldName) void
setWorldNames
(Set<String> worldNames) toString()
void
write
(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, writeVarInt, writeVarShort
-
Constructor Details
-
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, int portalCooldown)
-
-
Method Details
-
read
public void read(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion) - Overrides:
read
in classDefinedPacket
-
write
public void write(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion) - Overrides:
write
in classDefinedPacket
-
handle
- Specified by:
handle
in classDefinedPacket
- Throws:
Exception
-
getEntityId
public int getEntityId() -
isHardcore
public boolean isHardcore() -
getGameMode
public short getGameMode() -
getPreviousGameMode
public short getPreviousGameMode() -
getWorldNames
-
getDimensions
public se.llbit.nbt.Tag 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() -
isDebug
public boolean isDebug() -
isFlat
public boolean isFlat() -
getDeathLocation
-
getPortalCooldown
public int getPortalCooldown() -
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
public void setDimensions(se.llbit.nbt.Tag dimensions) -
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) -
setDebug
public void setDebug(boolean debug) -
setFlat
public void setFlat(boolean flat) -
setDeathLocation
-
setPortalCooldown
public void setPortalCooldown(int portalCooldown) -
toString
- Specified by:
toString
in classDefinedPacket
-
equals
- Specified by:
equals
in classDefinedPacket
-
canEqual
-
hashCode
public int hashCode()- Specified by:
hashCode
in classDefinedPacket
-