Class WrapperPlayServerRespawn

java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerRespawn

public class WrapperPlayServerRespawn extends AbstractPacket
  • Field Details

    • TYPE

      public static final com.comphenix.protocol.PacketType TYPE
      The 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 public com.comphenix.protocol.events.InternalStructure 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

      public ResourceKey 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

      public void setDimensionType(ResourceKey value)
      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 public com.comphenix.protocol.events.InternalStructure getDimensionInternal()
      Deprecated.
      Retrieves the value of field 'dimension'
      Returns:
      'dimension'
    • setDimensionInternal

      @Deprecated public void setDimensionInternal(com.comphenix.protocol.events.InternalStructure value)
      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

      public Optional<Vector3I> getLastDeathLocation()
      Retrieves the value of field 'lastDeathLocation'
      Returns:
      'lastDeathLocation'
    • setLastDeathLocation

      public void setLastDeathLocation(@Nullable Vector3I value)
      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