Interface ILocalResearch

All Known Implementing Classes:
LocalResearch

public interface ILocalResearch
Interface defining how a local research at a colony is. This represents how a colony stores researches they finished or started.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.resources.ResourceLocation
    Get the identifier of the branch.
    int
    Getter for the research depth.
    net.minecraft.resources.ResourceLocation
    Getter of the id of the research.
    int
    Getter for the progress of the research.
    Get the ResearchState of the research.
    boolean
    Tick the research to execute it.
    void
    setProgress(int progress)
    Set the research progress.
    void
    Set the current research state.
  • Method Details

    • getProgress

      int getProgress()
      Getter for the progress of the research.
      Returns:
      the progress in ticks.
    • getId

      net.minecraft.resources.ResourceLocation getId()
      Getter of the id of the research.
      Returns:
      the research id, as a ResourceLocation
    • getState

      ResearchState getState()
      Get the ResearchState of the research.
      Returns:
      the current state.
    • getBranch

      net.minecraft.resources.ResourceLocation getBranch()
      Get the identifier of the branch.
      Returns:
      the branch id, as a ResourceLocation.
    • getDepth

      int getDepth()
      Getter for the research depth.
      Returns:
      the depth.
    • setState

      void setState(ResearchState value)
      Set the current research state.
      Parameters:
      value - the state to set.
    • setProgress

      void setProgress(int progress)
      Set the research progress.
      Parameters:
      progress - the progress to set.
    • research

      boolean research(IResearchEffectManager effects, ILocalResearchTree tree)
      Tick the research to execute it.
      Parameters:
      effects - the research effects class which holds the information of the colony.
      tree - the research tree which holds the currently explored tree.
      Returns:
      true if effective.