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
-
public class Respawn extends DefinedPacket
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)LocationgetDeathLocation()shortgetDifficulty()ObjectgetDimension()shortgetGameMode()StringgetLevelType()shortgetPreviousGameMode()longgetSeed()StringgetWorldName()voidhandle(AbstractPacketHandler handler)inthashCode()booleanisCopyMeta()booleanisDebug()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)voidsetPreviousGameMode(short previousGameMode)voidsetSeed(long seed)voidsetWorldName(String worldName)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
-
-
-
-
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
-
getDimension
public Object getDimension()
-
getWorldName
public String getWorldName()
-
getSeed
public long getSeed()
-
getDifficulty
public short getDifficulty()
-
getGameMode
public short getGameMode()
-
getPreviousGameMode
public short getPreviousGameMode()
-
getLevelType
public String getLevelType()
-
isDebug
public boolean isDebug()
-
isFlat
public boolean isFlat()
-
isCopyMeta
public boolean isCopyMeta()
-
getDeathLocation
public Location getDeathLocation()
-
setDimension
public void setDimension(Object dimension)
-
setWorldName
public void setWorldName(String worldName)
-
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
public void setLevelType(String levelType)
-
setDebug
public void setDebug(boolean debug)
-
setFlat
public void setFlat(boolean flat)
-
setCopyMeta
public void setCopyMeta(boolean copyMeta)
-
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
-
-