Module bus.core

Class EarthBranch

All Implemented Interfaces:
Almanac, Culture

public class EarthBranch extends Samsara
地支(地元)
Since:
Java 17+
Author:
Kimi Liu
  • Field Details

    • NAMES

      public static final String[] NAMES
  • Constructor Details

    • EarthBranch

      public EarthBranch(int index)
    • EarthBranch

      public EarthBranch(String name)
  • Method Details

    • fromIndex

      public static EarthBranch fromIndex(int index)
    • fromName

      public static EarthBranch fromName(String name)
    • next

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

      public Element getElement()
      五行
      Returns:
      五行
    • getOpposite

      public Opposite getOpposite()
      阴阳
      Returns:
      阴阳
    • getHideHeavenStemMain

      public HeavenStem getHideHeavenStemMain()
      藏干之本气
      Returns:
      天干
    • getHideHeavenStemMiddle

      public HeavenStem getHideHeavenStemMiddle()
      藏干之中气,无中气返回null
      Returns:
      天干
    • getHideHeavenStemResidual

      public HeavenStem getHideHeavenStemResidual()
      藏干之余气,无余气返回null
      Returns:
      天干
    • getHideHeavenStems

      public List<HiddenStem> getHideHeavenStems()
      藏干列表
      Returns:
      藏干列表
    • getZodiac

      public Zodiac getZodiac()
      生肖
      Returns:
      生肖
    • getDirection

      public Direction getDirection()
      方位
      Returns:
      方位
    • getOminous

      public Direction getOminous()
      煞(逢巳日、酉日、丑日必煞东;亥日、卯日、未日必煞西;申日、子日、辰日必煞南;寅日、午日、戌日必煞北。)
      Returns:
      方位
    • getPengZuEarthBranch

      public PengZuEarthBranch getPengZuEarthBranch()
      地支彭祖百忌
      Returns:
      地支彭祖百忌
    • getSixclash

      public EarthBranch getSixclash()
      六冲(子午冲,丑未冲,寅申冲,辰戌冲,卯酉冲,巳亥冲)
      Returns:
      地支
    • getCombine

      public EarthBranch getCombine()
      六合(子丑合,寅亥合,卯戌合,辰酉合,巳申合,午未合)
      Returns:
      地支
    • getHarm

      public EarthBranch getHarm()
      六害(子未害、丑午害、寅巳害、卯辰害、申亥害、酉戌害)
      Returns:
      地支
    • combine

      public Element combine(EarthBranch target)
      合化(子丑合化土,寅亥合化木,卯戌合化火,辰酉合化金,巳申合化水,午未合化土)
      Parameters:
      target - 地支
      Returns:
      五行,如果无法合化,返回null