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, readStringArray, readUUID, readVarInt, readVarInt, readVarIntArray, readVarShort, toArray, write, writeArray, writeString, writeStringArray, writeUUID, writeVarInt, writeVarShort
public void read(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion)
read
in class DefinedPacket
public void write(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion)
write
in class DefinedPacket
public void handle(AbstractPacketHandler handler) throws Exception
handle
in class DefinedPacket
Exception
public 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 DefinedPacket
public boolean equals(Object o)
equals
in class DefinedPacket
protected boolean canEqual(Object other)
public int hashCode()
hashCode
in class DefinedPacket
Copyright © 2012–2020 SpigotMC. All rights reserved.