Class WrapperPlayServerLogin
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerLogin
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.comphenix.protocol.PacketType
The packet type that is wrapped by this wrapper.Fields inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket
handle
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new wrapper and initialize it with a packet handle with default valuesWrapperPlayServerLogin
(com.comphenix.protocol.events.PacketContainer packet) -
Method Summary
Modifier and TypeMethodDescriptionint
Retrieves the value of field 'chunkRadius'org.bukkit.World
Retrieves the value of field 'dimension'com.comphenix.protocol.events.InternalStructure
Deprecated.Retrieves Sets the type of the dimension.com.comphenix.protocol.events.InternalStructure
Deprecated.UsegetDimensionType()
insteadcom.comphenix.protocol.wrappers.EnumWrappers.NativeGameMode
Retrieves the value of field 'gameType'boolean
Retrieves the value of field 'hardcore'boolean
Retrieves the value of field 'isDebug'boolean
Retrieves the value of field 'isFlat'Retrieves the value of field 'lastDeathLocation'Set<org.bukkit.World>
Retrieves the value of field 'levels'int
Retrieves the value of field 'maxPlayers'int
Retrieves the value of field 'playerId'int
Gets the portal cooldowncom.comphenix.protocol.wrappers.EnumWrappers.NativeGameMode
Retrieves the value of field 'previousGameType'boolean
Retrieves the value of field 'reducedDebugInfo'com.comphenix.protocol.events.InternalStructure
Retrieves the value of field 'registryHolder' ProtocolLib currently does not provide a wrapper for this type.long
getSeed()
Retrieves the value of field 'seed'boolean
Retrieves the value of field 'showDeathScreen'int
Retrieves the value of field 'simulationDistance'void
setChunkRadius
(int value) Sets the value of field 'chunkRadius'void
setDimension
(org.bukkit.World value) Sets the value of field 'dimension'void
setDimensionInternal
(com.comphenix.protocol.events.InternalStructure value) Deprecated.UsesetDimension(World)
insteadvoid
setDimensionType
(ResourceKey value) Sets the type of the dimension.void
setDimensionTypeInternal
(com.comphenix.protocol.events.InternalStructure value) Deprecated.UsesetDimensionType(ResourceKey)
insteadvoid
setGameType
(com.comphenix.protocol.wrappers.EnumWrappers.NativeGameMode value) Sets the value of field 'gameType'void
setHardcore
(boolean value) Sets the value of field 'hardcore'void
setIsDebug
(boolean value) Sets the value of field 'isDebug'void
setIsFlat
(boolean value) Sets the value of field 'isFlat'void
setLastDeathLocation
(Vector3I value) Sets the value of field 'lastDeathLocation'void
Sets the value of field 'levels'void
setMaxPlayers
(int value) Sets the value of field 'maxPlayers'void
setPlayerId
(int value) Sets the value of field 'playerId'void
setPortalCooldown
(int value) Sets the portal cooldownvoid
setPreviousGameType
(com.comphenix.protocol.wrappers.EnumWrappers.NativeGameMode value) Sets the value of field 'previousGameType'void
setReducedDebugInfo
(boolean value) Sets the value of field 'reducedDebugInfo'void
setRegistryHolderInternal
(com.comphenix.protocol.events.InternalStructure value) Sets the value of field 'registryHolder' ProtocolLib currently does not provide a wrapper for this type.void
setSeed
(long value) Sets the value of field 'seed'void
setShowDeathScreen
(boolean value) Sets the value of field 'showDeathScreen'void
setSimulationDistance
(int value) Sets the value of field 'simulationDistance'Methods inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket
broadcastPacket, equals, getHandle, hashCode, receivePacket, sendPacket
-
Field Details
-
TYPE
public static final com.comphenix.protocol.PacketType TYPEThe packet type that is wrapped by this wrapper.
-
-
Constructor Details
-
WrapperPlayServerLogin
public WrapperPlayServerLogin()Constructs a new wrapper and initialize it with a packet handle with default values -
WrapperPlayServerLogin
public WrapperPlayServerLogin(com.comphenix.protocol.events.PacketContainer packet)
-
-
Method Details
-
getPlayerId
public int getPlayerId()Retrieves the value of field 'playerId'- Returns:
- 'playerId'
-
setPlayerId
public void setPlayerId(int value) Sets the value of field 'playerId'- Parameters:
value
- New value for field 'playerId'
-
getHardcore
public boolean getHardcore()Retrieves the value of field 'hardcore'- Returns:
- 'hardcore'
-
setHardcore
public void setHardcore(boolean value) Sets the value of field 'hardcore'- Parameters:
value
- New value for field 'hardcore'
-
getGameType
public com.comphenix.protocol.wrappers.EnumWrappers.NativeGameMode getGameType()Retrieves the value of field 'gameType'- Returns:
- 'gameType'
-
setGameType
public void setGameType(com.comphenix.protocol.wrappers.EnumWrappers.NativeGameMode value) Sets the value of field 'gameType'- Parameters:
value
- New value for field 'gameType'
-
getPreviousGameType
public com.comphenix.protocol.wrappers.EnumWrappers.NativeGameMode getPreviousGameType()Retrieves the value of field 'previousGameType'- Returns:
- 'previousGameType'
-
setPreviousGameType
public void setPreviousGameType(com.comphenix.protocol.wrappers.EnumWrappers.NativeGameMode value) Sets the value of field 'previousGameType'- Parameters:
value
- New value for field 'previousGameType'
-
getLevels
Retrieves the value of field 'levels'- Returns:
- 'levels'
-
setLevels
Sets the value of field 'levels'- Parameters:
value
- New value for field 'levels'
-
getRegistryHolderInternal
public com.comphenix.protocol.events.InternalStructure getRegistryHolderInternal()Retrieves the value of field 'registryHolder' ProtocolLib currently does not provide a wrapper for this type. Access to this type is only provided by an InternalStructure- Returns:
- 'registryHolder'
-
setRegistryHolderInternal
public void setRegistryHolderInternal(com.comphenix.protocol.events.InternalStructure value) Sets the value of field 'registryHolder' ProtocolLib currently does not provide a wrapper for this type. Access to this type is only provided by an InternalStructure- Parameters:
value
- New value for field 'registryHolder'
-
getDimensionTypeInternal
Deprecated.UsegetDimensionType()
insteadRetrieves the value of field 'dimensionType'- Returns:
- 'dimensionType'
-
setDimensionTypeInternal
@Deprecated public void setDimensionTypeInternal(com.comphenix.protocol.events.InternalStructure value) Deprecated.UsesetDimensionType(ResourceKey)
insteadSets the value of field 'dimensionType'- Parameters:
value
- New value for field 'dimensionType'
-
getDimensionType
Retrieves Sets the type of the dimension. The resource key is composed of a minecraft key indicating the registry and the dimension type within this registry.- Returns:
- 'dimensionType'
-
setDimensionType
Sets the type of the dimension. The resource key is composed of a minecraft key indicating the registry and the dimension type within this registry.- Parameters:
value
- New value for field 'dimensionType'
-
getDimensionInternal
Deprecated.UsegetDimension()
insteadRetrieves the value of field 'dimension'- Returns:
- 'dimension'
-
setDimensionInternal
Deprecated.UsesetDimension(World)
insteadSets the value of field 'dimension'- Parameters:
value
- New value for field 'dimension'
-
getDimension
public org.bukkit.World getDimension()Retrieves the value of field 'dimension'- Returns:
- 'dimension'
-
setDimension
public void setDimension(org.bukkit.World value) Sets the value of field 'dimension'- Parameters:
value
- New value for field 'dimension'
-
getSeed
public long getSeed()Retrieves the value of field 'seed'- Returns:
- 'seed'
-
setSeed
public void setSeed(long value) Sets the value of field 'seed'- Parameters:
value
- New value for field 'seed'
-
getMaxPlayers
public int getMaxPlayers()Retrieves the value of field 'maxPlayers'- Returns:
- 'maxPlayers'
-
setMaxPlayers
public void setMaxPlayers(int value) Sets the value of field 'maxPlayers'- Parameters:
value
- New value for field 'maxPlayers'
-
getChunkRadius
public int getChunkRadius()Retrieves the value of field 'chunkRadius'- Returns:
- 'chunkRadius'
-
setChunkRadius
public void setChunkRadius(int value) Sets the value of field 'chunkRadius'- Parameters:
value
- New value for field 'chunkRadius'
-
getSimulationDistance
public int getSimulationDistance()Retrieves the value of field 'simulationDistance'- Returns:
- 'simulationDistance'
-
setSimulationDistance
public void setSimulationDistance(int value) Sets the value of field 'simulationDistance'- Parameters:
value
- New value for field 'simulationDistance'
-
getReducedDebugInfo
public boolean getReducedDebugInfo()Retrieves the value of field 'reducedDebugInfo'- Returns:
- 'reducedDebugInfo'
-
setReducedDebugInfo
public void setReducedDebugInfo(boolean value) Sets the value of field 'reducedDebugInfo'- Parameters:
value
- New value for field 'reducedDebugInfo'
-
getShowDeathScreen
public boolean getShowDeathScreen()Retrieves the value of field 'showDeathScreen'- Returns:
- 'showDeathScreen'
-
setShowDeathScreen
public void setShowDeathScreen(boolean value) Sets the value of field 'showDeathScreen'- Parameters:
value
- New value for field 'showDeathScreen'
-
getIsDebug
public boolean getIsDebug()Retrieves the value of field 'isDebug'- Returns:
- 'isDebug'
-
setIsDebug
public void setIsDebug(boolean value) Sets the value of field 'isDebug'- Parameters:
value
- New value for field 'isDebug'
-
getIsFlat
public boolean getIsFlat()Retrieves the value of field 'isFlat'- Returns:
- 'isFlat'
-
setIsFlat
public void setIsFlat(boolean value) Sets the value of field 'isFlat'- Parameters:
value
- New value for field 'isFlat'
-
getLastDeathLocation
Retrieves the value of field 'lastDeathLocation'- Returns:
- 'lastDeathLocation'
-
setLastDeathLocation
Sets the value of field 'lastDeathLocation'- Parameters:
value
- New value for field 'lastDeathLocation'
-
getPortalCooldown
public int getPortalCooldown()Gets the portal cooldown- Returns:
- the number of ticks until the player can use the portal again
- Since:
- 1.20
-
setPortalCooldown
public void setPortalCooldown(int value) Sets the portal cooldown- Parameters:
value
- the number of ticks until the player can use the portal again- Since:
- 1.20
-
getDimension()
instead