Class WrapperPlayServerJoinGame

java.lang.Object
com.github.retrooper.packetevents.wrapper.PacketWrapper<WrapperPlayServerJoinGame>
com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerJoinGame

public class WrapperPlayServerJoinGame extends PacketWrapper<WrapperPlayServerJoinGame>
  • Constructor Details

    • WrapperPlayServerJoinGame

      public WrapperPlayServerJoinGame(PacketSendEvent event)
    • WrapperPlayServerJoinGame

      @Deprecated public WrapperPlayServerJoinGame(int entityID, boolean hardcore, GameMode gameMode, @Nullable @Nullable GameMode previousGameMode, List<String> worldNames, NBTCompound dimensionCodec, Dimension dimension, Difficulty difficulty, String worldName, long hashedSeed, int maxPlayers, int viewDistance, int simulationDistance, boolean reducedDebugInfo, boolean enableRespawnScreen, boolean isDebug, boolean isFlat, WorldBlockPosition lastDeathPosition, @Nullable @Nullable Integer portalCooldown)
      Deprecated.
    • WrapperPlayServerJoinGame

      @Deprecated public WrapperPlayServerJoinGame(int entityID, boolean hardcore, GameMode gameMode, @Nullable @Nullable GameMode previousGameMode, List<String> worldNames, NBTCompound dimensionCodec, Dimension dimension, Difficulty difficulty, String worldName, long hashedSeed, int maxPlayers, int viewDistance, int simulationDistance, boolean reducedDebugInfo, boolean enableRespawnScreen, boolean limitedCrafting, boolean isDebug, boolean isFlat, WorldBlockPosition lastDeathPosition, @Nullable @Nullable Integer portalCooldown)
      Deprecated.
    • WrapperPlayServerJoinGame

      @Deprecated public WrapperPlayServerJoinGame(int entityID, boolean hardcore, GameMode gameMode, @Nullable @Nullable GameMode previousGameMode, List<String> worldNames, NBTCompound dimensionCodec, Dimension dimension, Difficulty difficulty, String worldName, long hashedSeed, int maxPlayers, int viewDistance, int simulationDistance, boolean reducedDebugInfo, boolean enableRespawnScreen, boolean limitedCrafting, boolean isDebug, boolean isFlat, WorldBlockPosition lastDeathPosition, @Nullable @Nullable Integer portalCooldown, boolean enforcesSecureChat)
      Deprecated.
    • WrapperPlayServerJoinGame

      public WrapperPlayServerJoinGame(int entityID, boolean hardcore, GameMode gameMode, @Nullable @Nullable GameMode previousGameMode, List<String> worldNames, NBTCompound dimensionCodec, DimensionType dimensionType, Difficulty difficulty, String worldName, long hashedSeed, int maxPlayers, int viewDistance, int simulationDistance, boolean reducedDebugInfo, boolean enableRespawnScreen, boolean isDebug, boolean isFlat, WorldBlockPosition lastDeathPosition, @Nullable @Nullable Integer portalCooldown)
    • WrapperPlayServerJoinGame

      public WrapperPlayServerJoinGame(int entityID, boolean hardcore, GameMode gameMode, @Nullable @Nullable GameMode previousGameMode, List<String> worldNames, NBTCompound dimensionCodec, DimensionType dimensionType, Difficulty difficulty, String worldName, long hashedSeed, int maxPlayers, int viewDistance, int simulationDistance, boolean reducedDebugInfo, boolean enableRespawnScreen, boolean limitedCrafting, boolean isDebug, boolean isFlat, WorldBlockPosition lastDeathPosition, @Nullable @Nullable Integer portalCooldown)
    • WrapperPlayServerJoinGame

      public WrapperPlayServerJoinGame(int entityID, boolean hardcore, GameMode gameMode, @Nullable @Nullable GameMode previousGameMode, List<String> worldNames, NBTCompound dimensionCodec, DimensionType dimensionType, Difficulty difficulty, String worldName, long hashedSeed, int maxPlayers, int viewDistance, int simulationDistance, boolean reducedDebugInfo, boolean enableRespawnScreen, boolean limitedCrafting, boolean isDebug, boolean isFlat, WorldBlockPosition lastDeathPosition, @Nullable @Nullable Integer portalCooldown, boolean enforcesSecureChat)
    • WrapperPlayServerJoinGame

      public WrapperPlayServerJoinGame(int entityID, boolean hardcore, GameMode gameMode, @Nullable @Nullable GameMode previousGameMode, List<String> worldNames, NBTCompound dimensionCodec, DimensionType dimensionType, Difficulty difficulty, String worldName, long hashedSeed, int maxPlayers, int viewDistance, int simulationDistance, boolean reducedDebugInfo, boolean enableRespawnScreen, boolean limitedCrafting, boolean isDebug, boolean isFlat, WorldBlockPosition lastDeathPosition, @Nullable @Nullable Integer portalCooldown, int seaLevel, boolean enforcesSecureChat)
    • WrapperPlayServerJoinGame

      public WrapperPlayServerJoinGame(int entityID, boolean hardcore, GameMode gameMode, @Nullable @Nullable GameMode previousGameMode, List<String> worldNames, NBTCompound dimensionCodec, DimensionTypeRef dimensionTypeRef, Difficulty difficulty, String worldName, long hashedSeed, int maxPlayers, int viewDistance, int simulationDistance, boolean reducedDebugInfo, boolean enableRespawnScreen, boolean isDebug, boolean isFlat, WorldBlockPosition lastDeathPosition, @Nullable @Nullable Integer portalCooldown)
    • WrapperPlayServerJoinGame

      public WrapperPlayServerJoinGame(int entityID, boolean hardcore, GameMode gameMode, @Nullable @Nullable GameMode previousGameMode, List<String> worldNames, NBTCompound dimensionCodec, DimensionTypeRef dimensionTypeRef, Difficulty difficulty, String worldName, long hashedSeed, int maxPlayers, int viewDistance, int simulationDistance, boolean reducedDebugInfo, boolean enableRespawnScreen, boolean limitedCrafting, boolean isDebug, boolean isFlat, WorldBlockPosition lastDeathPosition, @Nullable @Nullable Integer portalCooldown)
    • WrapperPlayServerJoinGame

      public WrapperPlayServerJoinGame(int entityID, boolean hardcore, GameMode gameMode, @Nullable @Nullable GameMode previousGameMode, List<String> worldNames, NBTCompound dimensionCodec, DimensionTypeRef dimensionTypeRef, Difficulty difficulty, String worldName, long hashedSeed, int maxPlayers, int viewDistance, int simulationDistance, boolean reducedDebugInfo, boolean enableRespawnScreen, boolean limitedCrafting, boolean isDebug, boolean isFlat, WorldBlockPosition lastDeathPosition, @Nullable @Nullable Integer portalCooldown, boolean enforcesSecureChat)
    • WrapperPlayServerJoinGame

      public WrapperPlayServerJoinGame(int entityID, boolean hardcore, GameMode gameMode, @Nullable @Nullable GameMode previousGameMode, List<String> worldNames, NBTCompound dimensionCodec, DimensionTypeRef dimensionTypeRef, Difficulty difficulty, String worldName, long hashedSeed, int maxPlayers, int viewDistance, int simulationDistance, boolean reducedDebugInfo, boolean enableRespawnScreen, boolean limitedCrafting, boolean isDebug, boolean isFlat, WorldBlockPosition lastDeathPosition, @Nullable @Nullable Integer portalCooldown, int seaLevel, boolean enforcesSecureChat)
  • Method Details

    • read

      public void read()
      Overrides:
      read in class PacketWrapper<WrapperPlayServerJoinGame>
    • write

      public void write()
      Overrides:
      write in class PacketWrapper<WrapperPlayServerJoinGame>
    • copy

      public void copy(WrapperPlayServerJoinGame wrapper)
      Overrides:
      copy in class PacketWrapper<WrapperPlayServerJoinGame>
    • getEntityId

      public int getEntityId()
    • setEntityId

      public void setEntityId(int entityID)
    • isHardcore

      public boolean isHardcore()
    • setHardcore

      public void setHardcore(boolean hardcore)
    • getGameMode

      public GameMode getGameMode()
    • setGameMode

      public void setGameMode(GameMode gameMode)
    • getPreviousGameMode

      @Nullable public @Nullable GameMode getPreviousGameMode()
    • setPreviousGameMode

      public void setPreviousGameMode(@Nullable @Nullable GameMode previousGameMode)
    • getWorldNames

      public List<String> getWorldNames()
    • setWorldNames

      public void setWorldNames(List<String> worldNames)
    • getDimensionCodec

      public NBTCompound getDimensionCodec()
    • setDimensionCodec

      public void setDimensionCodec(NBTCompound dimensionCodec)
    • getDimensionTypeRef

      public DimensionTypeRef getDimensionTypeRef()
    • setDimensionTypeRef

      public void setDimensionTypeRef(DimensionTypeRef dimensionTypeRef)
    • getDimensionType

      public DimensionType getDimensionType()
    • setDimensionType

      public void setDimensionType(DimensionType dimensionType)
    • getDimension

      @Deprecated public Dimension getDimension()
      Deprecated.
    • setDimension

      @Deprecated public void setDimension(Dimension dimension)
      Deprecated.
    • getDifficulty

      public Difficulty getDifficulty()
    • setDifficulty

      public void setDifficulty(Difficulty difficulty)
    • getWorldName

      public String getWorldName()
    • setWorldName

      public void setWorldName(String worldName)
    • getHashedSeed

      public long getHashedSeed()
    • setHashedSeed

      public void setHashedSeed(long hashedSeed)
    • getMaxPlayers

      public int getMaxPlayers()
    • setMaxPlayers

      public void setMaxPlayers(int maxPlayers)
    • getViewDistance

      public int getViewDistance()
    • setViewDistance

      public void setViewDistance(int viewDistance)
    • getSimulationDistance

      public int getSimulationDistance()
    • setSimulationDistance

      public void setSimulationDistance(int simulationDistance)
    • isReducedDebugInfo

      public boolean isReducedDebugInfo()
    • setReducedDebugInfo

      public void setReducedDebugInfo(boolean reducedDebugInfo)
    • isRespawnScreenEnabled

      public boolean isRespawnScreenEnabled()
    • setRespawnScreenEnabled

      public void setRespawnScreenEnabled(boolean enableRespawnScreen)
    • isLimitedCrafting

      public boolean isLimitedCrafting()
    • setLimitedCrafting

      public void setLimitedCrafting(boolean limitedCrafting)
    • isDebug

      public boolean isDebug()
    • setDebug

      public void setDebug(boolean isDebug)
    • isFlat

      public boolean isFlat()
    • setFlat

      public void setFlat(boolean isFlat)
    • getLastDeathPosition

      @Nullable public @Nullable WorldBlockPosition getLastDeathPosition()
    • setLastDeathPosition

      public void setLastDeathPosition(@Nullable @Nullable WorldBlockPosition lastDeathPosition)
    • getPortalCooldown

      public Optional<Integer> getPortalCooldown()
    • setPortalCooldown

      public void setPortalCooldown(int portalCooldown)
    • getSeaLevel

      public int getSeaLevel()
    • setSeaLevel

      public void setSeaLevel(int seaLevel)
    • isEnforcesSecureChat

      public boolean isEnforcesSecureChat()
    • setEnforcesSecureChat

      public void setEnforcesSecureChat(boolean enforcesSecureChat)