Class GoldPanDrop
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.ItemSetting<Integer>
io.github.thebusybiscuit.slimefun4.implementation.settings.GoldPanDrop
-
Constructor Summary
ConstructorDescriptionGoldPanDrop
(GoldPan goldPan, String key, int defaultValue, ItemStack output) -
Method Summary
Modifier and TypeMethodDescriptionvoid
This method updates thisItemSetting
with the given value.boolean
validateInput
(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:ItemSetting
This 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:
validateInput
in classItemSetting<Integer>
- Parameters:
input
- The input value to validate- Returns:
- Whether the given input was valid
-
getOutput
-
update
Description copied from class:ItemSetting
This method updates thisItemSetting
with the given value. Override this method to catch changes of a value. A value may never be null.- Overrides:
update
in classItemSetting<Integer>
- Parameters:
newValue
- The new value for thisItemSetting
-