public class Respawn extends DefinedPacket
| Constructor and Description |
|---|
Respawn() |
Respawn(int dimension,
long seed,
short difficulty,
short gameMode,
String levelType,
boolean keepAllPlayerData,
boolean isDebug,
boolean isFlat,
String dimensionCodecName,
String world,
short previousGamemode) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
short |
getDifficulty() |
int |
getDimension() |
String |
getDimensionCodecName() |
short |
getGameMode() |
String |
getLevelType() |
short |
getPreviousGamemode() |
long |
getSeed() |
String |
getWorld() |
void |
handle(AbstractPacketHandler handler) |
int |
hashCode() |
boolean |
isDebug() |
boolean |
isFlat() |
boolean |
isKeepAllPlayerData() |
void |
read(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
void |
setDebug(boolean isDebug) |
void |
setDifficulty(short difficulty) |
void |
setDimension(int dimension) |
void |
setDimensionCodecName(String dimensionCodecName) |
void |
setFlat(boolean isFlat) |
void |
setGameMode(short gameMode) |
void |
setKeepAllPlayerData(boolean keepAllPlayerData) |
void |
setLevelType(String levelType) |
void |
setPreviousGamemode(short previousGamemode) |
void |
setSeed(long seed) |
void |
setWorld(String world) |
String |
toString() |
void |
write(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
read, readArray, readArray, readNBT, readString, readString, readStringArray, readUUID, readUUIDIntArray, readVarInt, readVarInt, readVarIntArray, readVarShort, toArray, write, writeArray, writeNBT, writeString, writeString, writeStringArray, writeUUID, writeUUIDIntArray, writeVarInt, writeVarShortpublic void read(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion)
read in class DefinedPacketpublic void write(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion)
write in class DefinedPacketpublic void handle(AbstractPacketHandler handler) throws Exception
handle in class DefinedPacketExceptionpublic int getDimension()
public long getSeed()
public short getDifficulty()
public short getGameMode()
public String getLevelType()
public boolean isKeepAllPlayerData()
public boolean isDebug()
public boolean isFlat()
public String getDimensionCodecName()
public String getWorld()
public short getPreviousGamemode()
public void setDimension(int dimension)
public void setSeed(long seed)
public void setDifficulty(short difficulty)
public void setGameMode(short gameMode)
public void setLevelType(String levelType)
public void setKeepAllPlayerData(boolean keepAllPlayerData)
public void setDebug(boolean isDebug)
public void setFlat(boolean isFlat)
public void setDimensionCodecName(String dimensionCodecName)
public void setWorld(String world)
public void setPreviousGamemode(short previousGamemode)
public String toString()
toString in class DefinedPacketpublic boolean equals(Object o)
equals in class DefinedPacketprotected boolean canEqual(Object other)
public int hashCode()
hashCode in class DefinedPacketCopyright © 2015–2020 WaterfallMC. All rights reserved.