Package net.md_5.bungee.protocol.packet
Class Respawn
java.lang.Object
net.md_5.bungee.protocol.DefinedPacket
net.md_5.bungee.protocol.packet.Respawn
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
short
short
int
short
long
getSeed()
void
handle
(AbstractPacketHandler handler) int
hashCode()
boolean
boolean
isDebug()
boolean
isFlat()
void
read
(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion) void
setCopyMeta
(boolean copyMeta) void
setDeathLocation
(Location deathLocation) void
setDebug
(boolean debug) void
setDifficulty
(short difficulty) void
setDimension
(Object dimension) void
setFlat
(boolean flat) void
setGameMode
(short gameMode) void
setLevelType
(String levelType) void
setPortalCooldown
(int portalCooldown) void
setPreviousGameMode
(short previousGameMode) void
setSeed
(long seed) void
setWorldName
(String worldName) 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
-
Respawn
public Respawn() -
Respawn
-
-
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
-
getDimension
-
getWorldName
-
getSeed
public long getSeed() -
getDifficulty
public short getDifficulty() -
getGameMode
public short getGameMode() -
getPreviousGameMode
public short getPreviousGameMode() -
getLevelType
-
isDebug
public boolean isDebug() -
isFlat
public boolean isFlat() -
isCopyMeta
public boolean isCopyMeta() -
getDeathLocation
-
getPortalCooldown
public int getPortalCooldown() -
setDimension
-
setWorldName
-
setSeed
public void setSeed(long seed) -
setDifficulty
public void setDifficulty(short difficulty) -
setGameMode
public void setGameMode(short gameMode) -
setPreviousGameMode
public void setPreviousGameMode(short previousGameMode) -
setLevelType
-
setDebug
public void setDebug(boolean debug) -
setFlat
public void setFlat(boolean flat) -
setCopyMeta
public void setCopyMeta(boolean copyMeta) -
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
-