Enum Class SelectiveFireState

java.lang.Object
java.lang.Enum<SelectiveFireState>
me.deecaad.weaponmechanics.weapon.shoot.SelectiveFireState
All Implemented Interfaces:
Serializable, Comparable<SelectiveFireState>, Constable

public enum SelectiveFireState extends Enum<SelectiveFireState>
  • Enum Constant Details

  • Method Details

    • values

      public static SelectiveFireState[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SelectiveFireState valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • setState

      public static void setState(EntityWrapper entity, String weaponTitle, org.bukkit.inventory.ItemStack item, org.bukkit.inventory.EquipmentSlot slot, SelectiveFireState oldState, SelectiveFireState newState)
      Helper function to set item's selective fire state and call a WeaponSelectiveFireChangeEvent.
    • getState

      public static SelectiveFireState getState(int ordinal)
    • count

      public static int count()
    • getNext

      public SelectiveFireState getNext()