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.PacketTypeThe 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 TypeMethodDescriptionbyteRetrieves the value of field 'dataToKeep'org.bukkit.WorldRetrieves the value of field 'dimension'com.comphenix.protocol.events.InternalStructureDeprecated.Retrieves Sets the type of the dimension.com.comphenix.protocol.events.InternalStructureDeprecated.booleanRetrieves the value of field 'isDebug'booleanRetrieves the value of field 'isFlat'Retrieves the value of field 'lastDeathLocation'com.comphenix.protocol.wrappers.EnumWrappers.NativeGameModeRetrieves the value of field 'playerGameType'intGets the portal cooldowncom.comphenix.protocol.wrappers.EnumWrappers.NativeGameModeRetrieves the value of field 'previousPlayerGameType'longgetSeed()Retrieves the value of field 'seed'voidsetDataToKeep(byte value) Sets the value of field 'dataToKeep'voidsetDimension(org.bukkit.World value) Sets the value of field 'dimension'voidsetDimensionInternal(com.comphenix.protocol.events.InternalStructure value) Deprecated.voidsetDimensionType(ResourceKey value) Sets the type of the dimension.voidsetDimensionTypeInternal(com.comphenix.protocol.events.InternalStructure value) Deprecated.voidsetIsDebug(boolean value) Sets the value of field 'isDebug'voidsetIsFlat(boolean value) Sets the value of field 'isFlat'voidsetLastDeathLocation(Vector3I value) Sets the value of field 'lastDeathLocation'voidsetPlayerGameType(com.comphenix.protocol.wrappers.EnumWrappers.NativeGameMode value) Sets the value of field 'playerGameType'voidsetPortalCooldown(int value) Sets the portal cooldownvoidsetPreviousPlayerGameType(com.comphenix.protocol.wrappers.EnumWrappers.NativeGameMode value) Sets the value of field 'previousPlayerGameType'voidsetSeed(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
-