All Implemented Interfaces:
Almanac, Culture

public class God extends Samsara
神煞
Since:
Java 17+
Author:
Kimi Liu
  • Field Details

    • NAMES

      public static final String[] NAMES
    • dayGods

      protected static String[] dayGods
      吉神宜趋,凶神宜忌数据(参考https://www.51wnl-cq.com/并进行了部分数据修正)
  • Constructor Details

    • God

      public God(int index)
    • God

      public God(String name)
  • Method Details

    • fromIndex

      public static God fromIndex(int index)
    • fromName

      public static God fromName(String name)
    • next

      public God next(int n)
      Description copied from interface: Culture
      推移
      Parameters:
      n - 推移步数
      Returns:
      this
    • getLuck

      public Luck getLuck()
      吉凶
      Returns:
      吉凶
    • getDayGods

      public static List<God> getDayGods(SixtyCycle month, SixtyCycle day)
      日神煞列表(吉神宜趋,凶神宜忌)
      Parameters:
      month - 月干支
      day - 日干支
      Returns:
      神煞列表