Class GoldPanDrop
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.ItemSetting<Integer>
io.github.thebusybiscuit.slimefun4.implementation.settings.GoldPanDrop
-
Constructor Summary
ConstructorsConstructorDescriptionGoldPanDrop(GoldPan goldPan, String key, int defaultValue, ItemStack output) -
Method Summary
Modifier and TypeMethodDescriptionvoidThis method updates thisItemSettingwith the given value.booleanvalidateInput(Integer input) This method checks if a given input would be valid as a value for thisItemSetting.Methods inherited from class io.github.thebusybiscuit.slimefun4.api.items.ItemSetting
equals, getDefaultValue, getErrorMessage, getItem, getKey, getValue, hashCode, isType, reload, toString
-
Constructor Details
-
GoldPanDrop
-
-
Method Details
-
validateInput
Description copied from class:ItemSettingThis method checks if a given input would be valid as a value for thisItemSetting. You can override this method to implement your own checks.- Overrides:
validateInputin classItemSetting<Integer>- Parameters:
input- The input value to validate- Returns:
- Whether the given input was valid
-
getOutput
-
update
Description copied from class:ItemSettingThis method updates thisItemSettingwith the given value. Override this method to catch changes of a value. A value may never be null.- Overrides:
updatein classItemSetting<Integer>- Parameters:
newValue- The new value for thisItemSetting
-