Interface IAvailability


public interface IAvailability
  • Method Details

    • isAvailable

      boolean isAvailable​(IPlayer player)
    • getDaytime

      int getDaytime()
      Returns:
      0:Always, 1:Night, 2:Day
    • setDaytime

      void setDaytime​(int type)
      Parameters:
      type - 0:Always, 1:Night, 2:Day
    • getMinPlayerLevel

      int getMinPlayerLevel()
    • setMinPlayerLevel

      void setMinPlayerLevel​(int level)
    • getDialog

      int getDialog​(int i)
      Parameters:
      i - (0-3)
      Returns:
      Returns dialog id, -1 if no dialog was set
    • setDialog

      void setDialog​(int i, int id, int type)
      Parameters:
      i - (0-3)
      id - Dialog id
      type - 0:Always, 1:After, 2:Before
    • removeDialog

      void removeDialog​(int i)
      Parameters:
      i - (0-3)
    • getQuest

      int getQuest​(int i)
      Parameters:
      i - (0-3)
      Returns:
      Returns quest id, -1 if no quest was set
    • setQuest

      void setQuest​(int i, int id, int type)
      Parameters:
      i - (0-3)
      id - Quest id
      type - 0:Always, 1:After, 2:Before, 3:Active, 4:NotActive, 5:Completed
    • removeQuest

      void removeQuest​(int i)
      Parameters:
      i - (0-1)
    • setFaction

      void setFaction​(int i, int id, int type, int stance)
      Parameters:
      i - (0-1)
      id - Faction id
      type - 0:Always, 1:Is, 2:IsNot
      stance - 0:Friendly, 1:Neutral, 2:Hostile
    • removeFaction

      void removeFaction​(int i)
      Parameters:
      i - (0-1)
    • setScoreboard

      void setScoreboard​(int i, java.lang.String objective, int type, int value)
      Parameters:
      i - (0-1)
      objective - Scoreboard Objective
      type - 0:Smalle, 1:Equals, 2:Bigger
      value - Scoreboard score value