Class Origin

java.lang.Object
io.github.djtpj.origin.Origin

public class Origin extends Object
An Origin is a collection of Traits as defined by the "origins.json" file
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Returns:
      Returns the formatted name of the Origin
    • enable

      public void enable(org.bukkit.entity.Player player)
      Enables all of the Origin's traits for a specific player
      Parameters:
      player - the player to enable the traits for
    • disable

      public void disable(org.bukkit.entity.Player player)
      Disables all of the Origin's traits for a specific player
      Parameters:
      player - the player to disable the traits for
    • getAllTraits

      public Trait[] getAllTraits()
      Returns:
      All the traits, including the traits inside a CompoundTrait.