Class WateringCan
java.lang.Object
io.github.pylonmc.pylon.core.item.PylonItem
io.github.pylonmc.pylon.base.content.tools.WateringCan
- All Implemented Interfaces:
io.github.pylonmc.pylon.core.item.base.PylonBlockInteractor,io.github.pylonmc.pylon.core.item.base.PylonBucket,io.github.pylonmc.pylon.core.item.base.PylonCooldownable,net.kyori.adventure.key.Keyed,org.bukkit.Keyed
public class WateringCan
extends io.github.pylonmc.pylon.core.item.PylonItem
implements io.github.pylonmc.pylon.core.item.base.PylonBlockInteractor, io.github.pylonmc.pylon.core.item.base.PylonBucket
-
Nested Class Summary
Nested classes/interfaces inherited from class io.github.pylonmc.pylon.core.item.PylonItem
io.github.pylonmc.pylon.core.item.PylonItem.Companion -
Field Summary
FieldsFields inherited from class io.github.pylonmc.pylon.core.item.PylonItem
Companion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull List<io.github.pylonmc.pylon.core.i18n.PylonArgument> voidonBucketFilled(@NotNull org.bukkit.event.player.PlayerBucketFillEvent event) voidonUsedToClickBlock(@NotNull org.bukkit.event.player.PlayerInteractEvent event) static voidwater(@NotNull org.bukkit.block.Block center, @NotNull WateringSettings settings) Methods inherited from class io.github.pylonmc.pylon.core.item.PylonItem
equals, fromStack, getAddon, getKey, getPylonBlock, getResearch, getResearchBypassPermission, getSchema, getSettings, getSettings, getStack, hashCode, isDisabled, isPylonItem, place, register, register, suppressNameWarningsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.Keyed
keyMethods inherited from interface io.github.pylonmc.pylon.core.item.base.PylonBucket
onBucketEmptiedMethods inherited from interface io.github.pylonmc.pylon.core.item.base.PylonCooldownable
respectCooldown
-
Field Details
-
settings
-
-
Constructor Details
-
WateringCan
public WateringCan(@NotNull @NotNull org.bukkit.inventory.ItemStack stack)
-
-
Method Details
-
getPlaceholders
- Overrides:
getPlaceholdersin classio.github.pylonmc.pylon.core.item.PylonItem
-
onUsedToClickBlock
public void onUsedToClickBlock(@NotNull @NotNull org.bukkit.event.player.PlayerInteractEvent event) - Specified by:
onUsedToClickBlockin interfaceio.github.pylonmc.pylon.core.item.base.PylonBlockInteractor
-
onBucketFilled
public void onBucketFilled(@NotNull @NotNull org.bukkit.event.player.PlayerBucketFillEvent event) - Specified by:
onBucketFilledin interfaceio.github.pylonmc.pylon.core.item.base.PylonBucket
-
water
public static void water(@NotNull @NotNull org.bukkit.block.Block center, @NotNull @NotNull WateringSettings settings)
-