Class AttributeManager

java.lang.Object
org.woftnw.eof.AttributeManager

public class AttributeManager extends Object
Manages when attributes should tick.
  • Constructor Details

    • AttributeManager

      public AttributeManager(@NonNull ElytrasOfFire plugin)
      Create an attribute scheduler.
      Parameters:
      plugin - The plugin instance.
  • Method Details

    • disable

      public void disable()
      Stop ticking all attributes.
    • registerAttribute

      public void registerAttribute(Tribe tribe, Attribute attribute)
      Register an attribute. It will begin ticking automatically.
      Parameters:
      tribe - The tribe the attribute belongs to.
      attribute - The attribute.
    • apply

      public void apply(@NonNull org.bukkit.entity.Player player) throws NoTribeException
      Throws:
      NoTribeException
    • unapply

      public void unapply(@NonNull org.bukkit.entity.Player player)