public ChatStyle(String name) { this.name = name; this.lookupName = toLookupName(name); VALUES.add(this); BY_NAME.put(lookupName, this); id = ID_LOOKUP.register(lookupName); }
/** * Looks up a ChatStyle by its ID. * * @param id * @return the ChatStyle, or null if not found. */ public static ChatStyle byId(int id) { return byName(ID_LOOKUP.getString(id)); }