gdxapp4d/lib-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T16PartHex.java
2022-02-07 00:24:55 +01:00

47 lines
2 KiB
Java

package love.distributedrebirth.numberxd.base2t.part;
import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinʸᴰ;
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ;
import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
@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> {
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"),
;
private final BãßBȍőnCoffinOpenʸᴰ<BãßBȍőnPartKeyʸᴰ> BBC = BãßBȍőnCoffinOpenʸᴰ.newInstance();
public BãßBȍőnCoffinʸᴰ<BãßBȍőnPartKeyʸᴰ> GET_BBC() { return BBC; }
public static int LENGTH() { return values().length; };
private T16PartHex(String dialTone, String chinaKey, String chinaValue, String alt1Value) {
BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.DIAL_TONE, dialTone);
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);
BBC.BOON_INIT(this);
}
public T02PartBinary splitPartBinary(T04PartQuad part) {
return T02PartBinary.values()[(ordinal() >> part.ordinal()) & 1];
}
}