예제 #1
0
 public ChatStyle(String name) {
   this.name = name;
   this.lookupName = toLookupName(name);
   VALUES.add(this);
   BY_NAME.put(lookupName, this);
   id = ID_LOOKUP.register(lookupName);
 }
예제 #2
0
 /**
  * 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));
 }