gdxapp4d/lib-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T16PartHex.java

47 lines
2 KiB
Java
Raw Normal View History

package love.distributedrebirth.numberxd.base2t.part;
2022-01-28 11:19:52 +01:00
2022-02-02 18:06:12 +01:00
import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinʸᴰ;
2022-02-02 18:29:34 +01:00
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
2022-02-02 18:06:12 +01:00
import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ;
2022-02-02 19:17:30 +01:00
import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ;
2022-02-02 18:29:34 +01:00
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
2022-02-05 20:34:50 +01:00
@BãßBȍőnClassInfoʸᴰ(name = "T16PartHex", purpose = "The distribution by 16 (elements).")
@BãßBȍőnPartAlt1Infoʸᴰ(name = "Hexadecimal", website = "https://en.wikipedia.org/wiki/Hexadecimal")
public enum T16PartHex implements BãßBȍőnPartAlt1ʸᴰ<T16PartHex> {
2022-01-28 11:19:52 +01:00
PART_1 ("˥","","hydrogen", "0"),
PART_2 ("˦","","helium", "1"),
PART_3 ("˨","","lithium", "2"),
PART_4 ("˩","","beryllium", "3"),
PART_5 ("","","boron", "4"),
PART_6 ("","","carbon", "5"),
PART_7 ("","","nitrogen", "6"),
PART_8 ("","","oxygen", "7"),
PART_9 ("","","fluorine", "8"),
PART_10("","","neon", "9"),
PART_11("","","sodium", "A"),
PART_12("","","magnesium", "B"),
PART_13("","","aluminium", "C"),
PART_14("","","silicon", "D"),
PART_15("","","phosphorus","E"),
PART_16("","","sulfur", "F"),
2022-01-28 11:19:52 +01:00
;
2022-02-02 18:32:23 +01:00
private final BãßBȍőnCoffinOpenʸᴰ<BãßBȍőnPartKeyʸᴰ> BBC = BãßBȍőnCoffinOpenʸᴰ.newInstance();
public BãßBȍőnCoffinʸᴰ<BãßBȍőnPartKeyʸᴰ> GET_BBC() { return BBC; }
2022-01-31 20:13:41 +01:00
public static int LENGTH() { return values().length; };
2022-01-28 11:19:52 +01:00
2022-02-05 16:25:41 +01:00
private T16PartHex(String dialTone, String chinaKey, String chinaValue, String alt1Value) {
BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.DIAL_TONE, dialTone);
2022-02-02 18:32:23 +01:00
BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_KEY, chinaKey);
BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_VALUE, chinaValue);
BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_1_VALUE, alt1Value);
2022-02-06 15:49:32 +01:00
BBC.BOON_INIT(this);
2022-01-28 11:19:52 +01:00
}
public T02PartBinary splitPartBinary(T04PartQuad part) {
2022-02-01 18:31:51 +01:00
return T02PartBinary.values()[(ordinal() >> part.ordinal()) & 1];
2022-01-30 14:50:21 +01:00
}
2022-01-28 11:19:52 +01:00
}