public class Respawn extends DefinedPacket
| Constructor and Description |
|---|
Respawn() |
Respawn(int dimension,
long seed,
short difficulty,
short gameMode,
String levelType) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
short |
getDifficulty() |
int |
getDimension() |
short |
getGameMode() |
String |
getLevelType() |
long |
getSeed() |
void |
handle(AbstractPacketHandler handler) |
int |
hashCode() |
void |
read(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
void |
setDifficulty(short difficulty) |
void |
setDimension(int dimension) |
void |
setGameMode(short gameMode) |
void |
setLevelType(String levelType) |
void |
setSeed(long seed) |
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 Respawn()
public Respawn(int dimension,
long seed,
short difficulty,
short gameMode,
String levelType)
public 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 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 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.