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,
int portalCooldown) |
| 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() |
int |
getPortalCooldown() |
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 |
setPortalCooldown(int portalCooldown) |
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) |
read, readArray, readArray, readEnumSet, readFixedBitSet, readProperties, readPublicKey, readString, readString, readStringArray, readTag, readUUID, readVarInt, readVarInt, readVarIntArray, readVarShort, toArray, write, writeArray, writeEnumSet, writeFixedBitSet, writeProperties, writePublicKey, writeString, writeString, writeStringArray, writeTag, writeUUID, writeVarInt, writeVarShortpublic 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,
int portalCooldown)
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 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 int getPortalCooldown()
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 void setPortalCooldown(int portalCooldown)
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 © 2012–2023 SpigotMC. All rights reserved.