Class WateringCan

java.lang.Object
io.github.pylonmc.rebar.item.RebarItem
io.github.pylonmc.pylon.content.tools.WateringCan
All Implemented Interfaces:
io.github.pylonmc.rebar.item.base.RebarBlockInteractor, io.github.pylonmc.rebar.item.base.RebarBucket, io.github.pylonmc.rebar.item.base.RebarCooldownable, io.github.pylonmc.rebar.item.base.RebarDispensable, net.kyori.adventure.key.Keyed, org.bukkit.Keyed

public class WateringCan extends io.github.pylonmc.rebar.item.RebarItem implements io.github.pylonmc.rebar.item.base.RebarBlockInteractor, io.github.pylonmc.rebar.item.base.RebarBucket, io.github.pylonmc.rebar.item.base.RebarDispensable
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.github.pylonmc.rebar.item.RebarItem

    io.github.pylonmc.rebar.item.RebarItem.Companion

    Nested classes/interfaces inherited from interface io.github.pylonmc.rebar.item.base.RebarBlockInteractor

    io.github.pylonmc.rebar.item.base.RebarBlockInteractor.Companion

    Nested classes/interfaces inherited from interface io.github.pylonmc.rebar.item.base.RebarBucket

    io.github.pylonmc.rebar.item.base.RebarBucket.Companion

    Nested classes/interfaces inherited from interface io.github.pylonmc.rebar.item.base.RebarDispensable

    io.github.pylonmc.rebar.item.base.RebarDispensable.Companion
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     

    Fields inherited from class io.github.pylonmc.rebar.item.RebarItem

    Companion

    Fields inherited from interface io.github.pylonmc.rebar.item.base.RebarBlockInteractor

    Companion

    Fields inherited from interface io.github.pylonmc.rebar.item.base.RebarBucket

    Companion

    Fields inherited from interface io.github.pylonmc.rebar.item.base.RebarDispensable

    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.rebar.i18n.RebarArgument>
     
    void
    onBucketFilled(@NotNull org.bukkit.event.player.PlayerBucketFillEvent event, @NotNull org.bukkit.event.EventPriority priority)
     
    void
    onDispense(@NotNull org.bukkit.event.block.BlockDispenseEvent event, @NotNull org.bukkit.event.EventPriority priority)
     
    void
    onUsedToClickBlock(@NotNull org.bukkit.event.player.PlayerInteractEvent event, @NotNull org.bukkit.event.EventPriority priority)
     
    static void
    water(@NotNull org.bukkit.block.Block center, @NotNull WateringSettings settings)
     

    Methods inherited from class io.github.pylonmc.rebar.item.RebarItem

    equals, fromStack, fromStack, getAddon, getKey, getRebarBlock, getResearch, getResearchBypassPermission, getSchema, getSettings, getSettings, getStack, hashCode, isDisabled, isRebarItem, isRebarItem, place, prePlace, register, register, suppressNameWarnings

    Methods inherited from class 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.rebar.item.base.RebarBucket

    onBucketEmptied

    Methods inherited from interface io.github.pylonmc.rebar.item.base.RebarCooldownable

    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.rebar.i18n.RebarArgument> getPlaceholders()
      Overrides:
      getPlaceholders in class io.github.pylonmc.rebar.item.RebarItem
    • onUsedToClickBlock

      public void onUsedToClickBlock(@NotNull @NotNull org.bukkit.event.player.PlayerInteractEvent event, @NotNull @NotNull org.bukkit.event.EventPriority priority)
      Specified by:
      onUsedToClickBlock in interface io.github.pylonmc.rebar.item.base.RebarBlockInteractor
    • onBucketFilled

      public void onBucketFilled(@NotNull @NotNull org.bukkit.event.player.PlayerBucketFillEvent event, @NotNull @NotNull org.bukkit.event.EventPriority priority)
      Specified by:
      onBucketFilled in interface io.github.pylonmc.rebar.item.base.RebarBucket
    • water

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

      public void onDispense(@NotNull @NotNull org.bukkit.event.block.BlockDispenseEvent event, @NotNull @NotNull org.bukkit.event.EventPriority priority)
      Specified by:
      onDispense in interface io.github.pylonmc.rebar.item.base.RebarDispensable