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 = "T08PartOctal", purpose = "The distribution by 8.") public enum T08PartOctal implements BãßBȍőnPartʸᴰ,BãßBȍőnPartShiftBitsʸᴰ { PART_1("˥","心","heart",0), PART_2("˩","頭","head", 3), PART_3("꜒","眼","eye", 6), PART_4("꜖","嘴","mouth",9), PART_5("꜈","臂","arm", 12), PART_6("꜌","手","hand", 15), PART_7("꜍","肢","leg", 18), PART_8("꜑","腳","feet", 21), ; public static int BIT_COUNT = 3; private static final byte BITMASK = 0x07; private final BãßBȍőnCoffinOpenʸᴰ BBC = BãßBȍőnCoffinOpenʸᴰ.newInstance(); public BãßBȍőnCoffinʸᴰ GET_BBC() { return BBC; } public static int LENGTH() { return values().length; }; private T08PartOctal(String idTone, String chinaKey, String chinaValue, int shiftBits) { BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ID_TONE, idTone); BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_KEY, chinaKey); BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_VALUE, chinaValue); BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.SHIFT_BITS, Integer.valueOf(shiftBits)); BBC.INIT_BOON(this); } public static T08PartOctal indexOf(T08PartOctal group, int value) { return T08PartOctal.values()[(value >> group.getShiftBits()) & BITMASK]; } public T02PartBinary splitPartBinary(T03PartTrit part) { return T02PartBinary.values()[(ordinal() >> part.ordinal()) & 1]; } public int ordinalOf(T08PartOctal group) { return ordinal() << group.getShiftBits(); } }