2022-02-02 16:34:46 +00:00
|
|
|
package love.distributedrebirth.bassboonyd;
|
|
|
|
|
2022-02-02 17:01:10 +00:00
|
|
|
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
2022-02-02 16:34:46 +00:00
|
|
|
public interface BãßBȍőnEnumʸᴰ<T> {
|
|
|
|
|
|
|
|
String name();
|
|
|
|
|
|
|
|
default String BȍőnNaam() {
|
|
|
|
return name();
|
|
|
|
}
|
|
|
|
|
|
|
|
default String BȍőnNaamI18N() {
|
2022-02-02 17:06:12 +00:00
|
|
|
return BãßNaam() + BãßBȍőnConstantsʸᴰ.STR_DOT + name();
|
2022-02-02 16:34:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
default String BãßNaam() {
|
2022-02-02 17:01:10 +00:00
|
|
|
return getClass().getAnnotation(BãßBȍőnInfoʸᴰ.class).name();
|
|
|
|
}
|
|
|
|
|
|
|
|
@SuppressWarnings("unchecked")
|
|
|
|
default T[] BãßInstances() {
|
|
|
|
try {
|
2022-02-02 17:06:12 +00:00
|
|
|
Object result = getClass().getMethod(BãßBȍőnConstantsʸᴰ.STR_VALUES).invoke(null);
|
2022-02-02 17:01:10 +00:00
|
|
|
return (T[]) result;
|
|
|
|
} catch (Exception e) {
|
|
|
|
throw new RuntimeException(e);
|
|
|
|
}
|
2022-02-02 16:34:46 +00:00
|
|
|
}
|
|
|
|
}
|