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.CompanionNested classes/interfaces inherited from interface io.github.pylonmc.rebar.item.base.RebarBlockInteractor
io.github.pylonmc.rebar.item.base.RebarBlockInteractor.CompanionNested classes/interfaces inherited from interface io.github.pylonmc.rebar.item.base.RebarBucket
io.github.pylonmc.rebar.item.base.RebarBucket.CompanionNested classes/interfaces inherited from interface io.github.pylonmc.rebar.item.base.RebarDispensable
io.github.pylonmc.rebar.item.base.RebarDispensable.Companion -
Field Summary
FieldsFields inherited from class io.github.pylonmc.rebar.item.RebarItem
CompanionFields inherited from interface io.github.pylonmc.rebar.item.base.RebarBlockInteractor
CompanionFields inherited from interface io.github.pylonmc.rebar.item.base.RebarBucket
CompanionFields inherited from interface io.github.pylonmc.rebar.item.base.RebarDispensable
Companion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull List<io.github.pylonmc.rebar.i18n.RebarArgument> voidonBucketFilled(@NotNull org.bukkit.event.player.PlayerBucketFillEvent event, @NotNull org.bukkit.event.EventPriority priority) voidonDispense(@NotNull org.bukkit.event.block.BlockDispenseEvent event, @NotNull org.bukkit.event.EventPriority priority) voidonUsedToClickBlock(@NotNull org.bukkit.event.player.PlayerInteractEvent event, @NotNull org.bukkit.event.EventPriority priority) static voidwater(@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, suppressNameWarningsMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.Keyed
keyMethods inherited from interface io.github.pylonmc.rebar.item.base.RebarBucket
onBucketEmptiedMethods inherited from interface io.github.pylonmc.rebar.item.base.RebarCooldownable
respectCooldown
-
Field Details
-
settings
-
-
Constructor Details
-
WateringCan
public WateringCan(@NotNull @NotNull org.bukkit.inventory.ItemStack stack)
-
-
Method Details
-
getPlaceholders
- Overrides:
getPlaceholdersin classio.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:
onUsedToClickBlockin interfaceio.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:
onBucketFilledin interfaceio.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:
onDispensein interfaceio.github.pylonmc.rebar.item.base.RebarDispensable
-