/** * Retrieve an Id from a value. * * @param value Id value to get, positive and negative values are allowed, -1 is WORLD. * @return The Id with the internal value correspond to the parameter. */ public static PlayerId valueOf(final int value) { if (!PlayerId.LIST.containsKey(value)) { PlayerId.LIST.put(value, new PlayerId(value)); } return PlayerId.LIST.get(value); }