Package edu.uw.calebcha.hvz
Class HvZPlayerRegistry
java.lang.Object
edu.uw.calebcha.hvz.HvZPlayerRegistry
public class HvZPlayerRegistry
extends java.lang.Object
A structure storing all Humans vs Zombies player data.
- Author:
- Caleb Chan (cccfire)
-
Constructor Summary
Constructors Constructor Description HvZPlayerRegistry()
-
Method Summary
Modifier and Type Method Description boolean
contains(HvZPlayer player)
Checks if HvZPlayer is in registry.boolean
contains(org.bukkit.entity.Player player)
Checks if Bukkit Player is in registry.java.util.Map<org.bukkit.entity.Player,HvZPlayer>
getPlayermap()
Gets the map storing the HvZPlayersvoid
put(HvZPlayer hvzPlayer)
Puts entry Player, HvZPlayer to registry.
-
Constructor Details
-
HvZPlayerRegistry
public HvZPlayerRegistry()
-
-
Method Details
-
getPlayermap
Gets the map storing the HvZPlayers- Returns:
- map of Players to HvZPlayers
-
put
Puts entry Player, HvZPlayer to registry.- Parameters:
hvzPlayer
- HvZPlayer being put into registry.
-
contains
public boolean contains(org.bukkit.entity.Player player)Checks if Bukkit Player is in registry.- Parameters:
player
- Bukkit Player to query for- Returns:
- true if player is in registry, false otherwise
-
contains
Checks if HvZPlayer is in registry.- Parameters:
player
- HvZPlayer to query for- Returns:
- true if player is in registry, false otherwise
-