package net.knarcraft.minigames.arena.parkour; import net.knarcraft.minigames.arena.AbstractPlayerEntryState; import net.knarcraft.minigames.container.SerializableUUID; import org.bukkit.GameMode; import org.bukkit.Location; import org.bukkit.entity.Player; import org.bukkit.potion.PotionEffect; import org.jetbrains.annotations.NotNull; import java.util.ArrayList; import java.util.Collection; import java.util.Map; import java.util.UUID; /** * The state of a player before entering a parkour arena */ public class ParkourPlayerEntryState extends AbstractPlayerEntryState { /** * Instantiates a new player state * * @param player
The player whose state should be stored
*/ public ParkourPlayerEntryState(@NotNull Player player) { super(player); } /** * Instantiates a new parkour player entry state * * @param playerIdThe id of the player whose state this should keep track of
* @param entryLocationThe location the player entered from
* @param originalIsFlyingWhether the player was flying before entering the arena
* @param originalGameModeThe game-mode of the player before entering the arena
* @param originalAllowFlightWhether the player was allowed flight before entering the arena
* @param originalInvulnerableWhether the player was invulnerable before entering the arena
* @param originalIsSwimmingWhether the player was swimming before entering the arena
* @param originalCollideAbleWhether the player was collide-able before entering the arena
* @param originalPotionEffectsThe potion effects applied to the player when joining
* @param originalHealthThe health of the player when joining the arena
* @param originalSaturationThe saturation of the player when joining the arena
*/ public ParkourPlayerEntryState(@NotNull UUID playerId, Location entryLocation, boolean originalIsFlying, GameMode originalGameMode, boolean originalAllowFlight, boolean originalInvulnerable, boolean originalIsSwimming, boolean originalCollideAble, CollectionThe data to deserialize
*/ @SuppressWarnings({"unused", "unchecked"}) public static ParkourPlayerEntryState deserialize(Map