Class WrapperPlayServerLogin

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

public class WrapperPlayServerLogin extends AbstractPacket
  • Field Details

    • TYPE

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

      public Set<org.bukkit.World> getLevels()
      Retrieves the value of field 'levels'
      Returns:
      'levels'
    • setLevels

      public void setLevels(Set<org.bukkit.World> value)
      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 public com.comphenix.protocol.events.InternalStructure getDimensionTypeInternal()
      Deprecated.
      Use getDimensionType() instead
      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.
      Use getDimension() instead
      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'
    • 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

      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