public static enum ConcurrentPlayerMap.PlayerKey extends java.lang.Enum<ConcurrentPlayerMap.PlayerKey> implements com.google.common.base.Function<org.bukkit.entity.Player,java.lang.Object>
Enum Constant and Description |
---|
ADDRESS
Use a player's
Player.getAddress() as key in the map. |
NAME
Use a player's
HumanEntity.getName() as key in the map. |
Modifier and Type | Method and Description |
---|---|
static ConcurrentPlayerMap.PlayerKey |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ConcurrentPlayerMap.PlayerKey[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConcurrentPlayerMap.PlayerKey ADDRESS
Player.getAddress()
as key in the map.public static final ConcurrentPlayerMap.PlayerKey NAME
HumanEntity.getName()
as key in the map.public static ConcurrentPlayerMap.PlayerKey[] values()
for (ConcurrentPlayerMap.PlayerKey c : ConcurrentPlayerMap.PlayerKey.values()) System.out.println(c);
public static ConcurrentPlayerMap.PlayerKey valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is null