Class WrapperPlayServerRespawn
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerRespawn
-
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 valuesWrapperPlayServerRespawn
(com.comphenix.protocol.events.PacketContainer packet) -
Method Summary
Modifier and TypeMethodDescriptionbyte
Retrieves the value of field 'dataToKeep'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.boolean
Retrieves the value of field 'isDebug'boolean
Retrieves the value of field 'isFlat'Retrieves the value of field 'lastDeathLocation'com.comphenix.protocol.wrappers.EnumWrappers.NativeGameMode
Retrieves the value of field 'playerGameType'int
Gets the portal cooldowncom.comphenix.protocol.wrappers.EnumWrappers.NativeGameMode
Retrieves the value of field 'previousPlayerGameType'long
getSeed()
Retrieves the value of field 'seed'void
setDataToKeep
(byte value) Sets the value of field 'dataToKeep'void
setDimension
(org.bukkit.World value) Sets the value of field 'dimension'void
setDimensionInternal
(com.comphenix.protocol.events.InternalStructure value) Deprecated.void
setDimensionType
(ResourceKey value) Sets the type of the dimension.void
setDimensionTypeInternal
(com.comphenix.protocol.events.InternalStructure value) Deprecated.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
setPlayerGameType
(com.comphenix.protocol.wrappers.EnumWrappers.NativeGameMode value) Sets the value of field 'playerGameType'void
setPortalCooldown
(int value) Sets the portal cooldownvoid
setPreviousPlayerGameType
(com.comphenix.protocol.wrappers.EnumWrappers.NativeGameMode value) Sets the value of field 'previousPlayerGameType'void
setSeed
(long value) Sets the value of field 'seed'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
-
WrapperPlayServerRespawn
public WrapperPlayServerRespawn()Constructs a new wrapper and initialize it with a packet handle with default values -
WrapperPlayServerRespawn
public WrapperPlayServerRespawn(com.comphenix.protocol.events.PacketContainer packet)
-
-
Method Details
-
getDimensionTypeInternal
Deprecated.Retrieves the value of field 'dimensionType'- Returns:
- 'dimensionType'
-
setDimensionTypeInternal
@Deprecated public void setDimensionTypeInternal(com.comphenix.protocol.events.InternalStructure value) Deprecated.Sets 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.Retrieves the value of field 'dimension'- Returns:
- 'dimension'
-
setDimensionInternal
Deprecated.Sets 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'
-
getPlayerGameType
public com.comphenix.protocol.wrappers.EnumWrappers.NativeGameMode getPlayerGameType()Retrieves the value of field 'playerGameType'- Returns:
- 'playerGameType'
-
setPlayerGameType
public void setPlayerGameType(com.comphenix.protocol.wrappers.EnumWrappers.NativeGameMode value) Sets the value of field 'playerGameType'- Parameters:
value
- New value for field 'playerGameType'
-
getPreviousPlayerGameType
public com.comphenix.protocol.wrappers.EnumWrappers.NativeGameMode getPreviousPlayerGameType()Retrieves the value of field 'previousPlayerGameType'- Returns:
- 'previousPlayerGameType'
-
setPreviousPlayerGameType
public void setPreviousPlayerGameType(com.comphenix.protocol.wrappers.EnumWrappers.NativeGameMode value) Sets the value of field 'previousPlayerGameType'- Parameters:
value
- New value for field 'previousPlayerGameType'
-
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'
-
getDataToKeep
public byte getDataToKeep()Retrieves the value of field 'dataToKeep'- Returns:
- 'dataToKeep'
-
setDataToKeep
public void setDataToKeep(byte value) Sets the value of field 'dataToKeep'- Parameters:
value
- New value for field 'dataToKeep'
-
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
-