public class Login extends DefinedPacket
Constructor and Description |
---|
Login() |
Login(int entityId,
boolean hardcore,
short gameMode,
short previousGameMode,
Set<String> worldNames,
se.llbit.nbt.Tag dimensions,
Object dimension,
String worldName,
long seed,
short difficulty,
int maxPlayers,
String levelType,
int viewDistance,
int simulationDistance,
boolean reducedDebugInfo,
boolean normalRespawn,
boolean debug,
boolean flat,
Location deathLocation) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
Location |
getDeathLocation() |
short |
getDifficulty() |
Object |
getDimension() |
se.llbit.nbt.Tag |
getDimensions() |
int |
getEntityId() |
short |
getGameMode() |
String |
getLevelType() |
int |
getMaxPlayers() |
short |
getPreviousGameMode() |
long |
getSeed() |
int |
getSimulationDistance() |
int |
getViewDistance() |
String |
getWorldName() |
Set<String> |
getWorldNames() |
void |
handle(AbstractPacketHandler handler) |
int |
hashCode() |
boolean |
isDebug() |
boolean |
isFlat() |
boolean |
isHardcore() |
boolean |
isNormalRespawn() |
boolean |
isReducedDebugInfo() |
void |
read(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
void |
setDeathLocation(Location deathLocation) |
void |
setDebug(boolean debug) |
void |
setDifficulty(short difficulty) |
void |
setDimension(Object dimension) |
void |
setDimensions(se.llbit.nbt.Tag dimensions) |
void |
setEntityId(int entityId) |
void |
setFlat(boolean flat) |
void |
setGameMode(short gameMode) |
void |
setHardcore(boolean hardcore) |
void |
setLevelType(String levelType) |
void |
setMaxPlayers(int maxPlayers) |
void |
setNormalRespawn(boolean normalRespawn) |
void |
setPreviousGameMode(short previousGameMode) |
void |
setReducedDebugInfo(boolean reducedDebugInfo) |
void |
setSeed(long seed) |
void |
setSimulationDistance(int simulationDistance) |
void |
setViewDistance(int viewDistance) |
void |
setWorldName(String worldName) |
void |
setWorldNames(Set<String> worldNames) |
String |
toString() |
void |
write(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
expectedMaxLength, expectedMinLength, read, readArray, readArray, readProperties, readPublicKey, readString, readString, readStringArray, readTag, readUUID, readVarInt, readVarInt, readVarIntArray, readVarShort, toArray, write, writeArray, writeProperties, writePublicKey, writeString, writeString, writeStringArray, writeTag, writeUUID, writeVarInt, writeVarShort
public Login()
public Login(int entityId, boolean hardcore, short gameMode, short previousGameMode, Set<String> worldNames, se.llbit.nbt.Tag dimensions, Object dimension, String worldName, long seed, short difficulty, int maxPlayers, String levelType, int viewDistance, int simulationDistance, boolean reducedDebugInfo, boolean normalRespawn, boolean debug, boolean flat, Location deathLocation)
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 int getEntityId()
public boolean isHardcore()
public short getGameMode()
public short getPreviousGameMode()
public se.llbit.nbt.Tag getDimensions()
public Object getDimension()
public String getWorldName()
public long getSeed()
public short getDifficulty()
public int getMaxPlayers()
public String getLevelType()
public int getViewDistance()
public int getSimulationDistance()
public boolean isReducedDebugInfo()
public boolean isNormalRespawn()
public boolean isDebug()
public boolean isFlat()
public Location getDeathLocation()
public void setEntityId(int entityId)
public void setHardcore(boolean hardcore)
public void setGameMode(short gameMode)
public void setPreviousGameMode(short previousGameMode)
public void setDimensions(se.llbit.nbt.Tag dimensions)
public void setDimension(Object dimension)
public void setWorldName(String worldName)
public void setSeed(long seed)
public void setDifficulty(short difficulty)
public void setMaxPlayers(int maxPlayers)
public void setLevelType(String levelType)
public void setViewDistance(int viewDistance)
public void setSimulationDistance(int simulationDistance)
public void setReducedDebugInfo(boolean reducedDebugInfo)
public void setNormalRespawn(boolean normalRespawn)
public void setDebug(boolean debug)
public void setFlat(boolean flat)
public void setDeathLocation(Location deathLocation)
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 © 2019–2022. All rights reserved.