public class Respawn extends DefinedPacket
| Constructor and Description |
|---|
Respawn() |
Respawn(Object dimension,
String worldName,
long seed,
short difficulty,
short gameMode,
short previousGameMode,
String levelType,
boolean debug,
boolean flat,
boolean copyMeta) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
short |
getDifficulty() |
Object |
getDimension() |
short |
getGameMode() |
String |
getLevelType() |
short |
getPreviousGameMode() |
long |
getSeed() |
String |
getWorldName() |
void |
handle(AbstractPacketHandler handler) |
int |
hashCode() |
boolean |
isCopyMeta() |
boolean |
isDebug() |
boolean |
isFlat() |
void |
read(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
void |
setCopyMeta(boolean copyMeta) |
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 |
setPreviousGameMode(short previousGameMode) |
void |
setSeed(long seed) |
void |
setWorldName(String worldName) |
String |
toString() |
void |
write(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
read, readArray, readArray, readString, readString, readStringArray, readUUID, readVarInt, readVarInt, readVarIntArray, readVarShort, toArray, write, writeArray, writeString, writeString, writeStringArray, writeUUID, 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 Object getDimension()
public String getWorldName()
public long getSeed()
public short getDifficulty()
public short getGameMode()
public short getPreviousGameMode()
public String getLevelType()
public boolean isDebug()
public boolean isFlat()
public boolean isCopyMeta()
public void setDimension(Object dimension)
public void setWorldName(String worldName)
public void setSeed(long seed)
public void setDifficulty(short difficulty)
public void setGameMode(short gameMode)
public void setPreviousGameMode(short previousGameMode)
public void setLevelType(String levelType)
public void setDebug(boolean debug)
public void setFlat(boolean flat)
public void setCopyMeta(boolean copyMeta)
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.