Interface SpawnerDurationModifier


public interface SpawnerDurationModifier
Spawners have a specific period/duration until they drop something. Use this class to modify the duration that'll be used. Initiate it using Spawner.addDropDurationModifier(String, Plugin, Operation, double)
  • Field Details

  • Method Details

    • getId

      String getId()
      Returns the id of this modifier that can be used to identify this modifier
      Returns:
      The id of this modifier
    • getPlugin

      Plugin getPlugin()
      Returns the plugin that created this modifier
      Returns:
      The plugin that initiated this modifier
    • getSpawner

      Spawner getSpawner()
      Returns the spawner to which this modifier has been added to
      Returns:
      The spawner to which this applies to
    • getOperation

      Get the operation this modifier will apply to the mathematical equation.
      Returns:
      The operation used
    • getValue

      double getValue()
      Get the amount in seconds by which this modifier will apply its SpawnerDurationModifier.Operation.
      Returns:
      The value that will be used in the mathematical equation
    • setValue

      void setValue(double value)
      Set the amount in seconds by which this modifier will apply its SpawnerDurationModifier.Operation.
      Parameters:
      value - The new value that will be used in the mathematical equation
    • isPresent

      boolean isPresent()
      Returns whether or not this modifier still exists in getSpawner()
      Returns:
      If this modifier is still present