Code example for Map

Methods: size, values

0
     * Returns an array of all the registered {@link PotionEffectType}s. 
     * 
     * @return Array of types. 
     */ 
    public static PotionEffectType[] values() { 
        PotionEffectType[] result = new PotionEffectType[byId.size()]; // MCPC+ change underlying storage to map
        return byId.values().toArray(result); // MCPC+ change underlying storage to map
    } 
}