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

    Fields
    Modifier and Type
    Field
    Description
     

    Fields inherited from class io.github.pylonmc.pylon.core.item.PylonItem

    Companion
  • Constructor Summary

    Constructors
    Constructor
    Description
    WateringCan(@NotNull org.bukkit.inventory.ItemStack stack)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull List<io.github.pylonmc.pylon.core.i18n.PylonArgument>
     
    void
    onBucketFilled(@NotNull org.bukkit.event.player.PlayerBucketFillEvent event)
     
    void
    onUsedToClickBlock(@NotNull org.bukkit.event.player.PlayerInteractEvent event)
     
    static void
    water(@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, suppressNameWarnings

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.bukkit.Keyed

    key

    Methods inherited from interface io.github.pylonmc.pylon.core.item.base.PylonBucket

    onBucketEmptied

    Methods inherited from interface io.github.pylonmc.pylon.core.item.base.PylonCooldownable

    respectCooldown
  • Field Details

  • Constructor Details

    • WateringCan

      public WateringCan(@NotNull @NotNull org.bukkit.inventory.ItemStack stack)
  • Method Details

    • getPlaceholders

      @NotNull public @NotNull List<io.github.pylonmc.pylon.core.i18n.PylonArgument> getPlaceholders()
      Overrides:
      getPlaceholders in class io.github.pylonmc.pylon.core.item.PylonItem
    • onUsedToClickBlock

      public void onUsedToClickBlock(@NotNull @NotNull org.bukkit.event.player.PlayerInteractEvent event)
      Specified by:
      onUsedToClickBlock in interface io.github.pylonmc.pylon.core.item.base.PylonBlockInteractor
    • onBucketFilled

      public void onBucketFilled(@NotNull @NotNull org.bukkit.event.player.PlayerBucketFillEvent event)
      Specified by:
      onBucketFilled in interface io.github.pylonmc.pylon.core.item.base.PylonBucket
    • water

      public static void water(@NotNull @NotNull org.bukkit.block.Block center, @NotNull @NotNull WateringSettings settings)