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 booleanbooleanshortshortintshortlonggetSeed()voidhandle(AbstractPacketHandler handler) inthashCode()booleanbooleanisDebug()booleanisFlat()voidread(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion) voidsetCopyMeta(boolean copyMeta) voidsetDeathLocation(Location deathLocation) voidsetDebug(boolean debug) voidsetDifficulty(short difficulty) voidsetDimension(Object dimension) voidsetFlat(boolean flat) voidsetGameMode(short gameMode) voidsetLevelType(String levelType) voidsetPortalCooldown(int portalCooldown) voidsetPreviousGameMode(short previousGameMode) voidsetSeed(long seed) voidsetWorldName(String worldName) toString()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, 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:
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
-
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:
toStringin classDefinedPacket
-
equals
- Specified by:
equalsin classDefinedPacket
-
canEqual
-
hashCode
public int hashCode()- Specified by:
hashCodein classDefinedPacket
-