java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.ItemSetting<Integer>
io.github.thebusybiscuit.slimefun4.implementation.settings.GoldPanDrop

public class GoldPanDrop extends ItemSetting<Integer>
  • Constructor Details

    • GoldPanDrop

      @ParametersAreNonnullByDefault public GoldPanDrop(GoldPan goldPan, String key, int defaultValue, ItemStack output)
  • Method Details

    • validateInput

      public boolean validateInput(Integer input)
      Description copied from class: ItemSetting
      This method checks if a given input would be valid as a value for this ItemSetting. You can override this method to implement your own checks.
      Overrides:
      validateInput in class ItemSetting<Integer>
      Parameters:
      input - The input value to validate
      Returns:
      Whether the given input was valid
    • getOutput

      @Nonnull public ItemStack getOutput()
    • update

      public void update(Integer newValue)
      Description copied from class: ItemSetting
      This method updates this ItemSetting with the given value. Override this method to catch changes of a value. A value may never be null.
      Overrides:
      update in class ItemSetting<Integer>
      Parameters:
      newValue - The new value for this ItemSetting