java.lang.Object
io.github.pylonmc.pylon.core.item.PylonItem
io.github.pylonmc.pylon.base.content.tools.Hammer
All Implemented Interfaces:
io.github.pylonmc.pylon.core.item.base.PylonBlockInteractor, io.github.pylonmc.pylon.core.item.base.PylonCooldownable, net.kyori.adventure.key.Keyed, org.bukkit.Keyed

public class Hammer extends io.github.pylonmc.pylon.core.item.PylonItem implements io.github.pylonmc.pylon.core.item.base.PylonBlockInteractor
  • 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
    final org.bukkit.Material
     
    final int
     
    final io.github.pylonmc.pylon.core.util.MiningLevel
     
    final io.github.pylonmc.pylon.core.util.RandomizedSound
     

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

    Companion
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    static @NotNull io.github.pylonmc.pylon.core.item.builder.ItemStackBuilder
    createItemStack(org.bukkit.NamespacedKey key, org.bukkit.Material material, double attackSpeed, double knockback, double attackDamage)
     
    static @NotNull @Unmodifiable List<org.bukkit.inventory.ItemStack>
    hammersWithMiningLevelAtLeast(@NotNull io.github.pylonmc.pylon.core.util.MiningLevel level)
     
    void
    onUsedToClickBlock(@NotNull org.bukkit.event.player.PlayerInteractEvent event)
     
    boolean
    tryDoRecipe(@NotNull org.bukkit.block.Block block, @Nullable org.bukkit.entity.Player player)
     

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

    equals, fromStack, getAddon, getKey, getPlaceholders, 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.PylonCooldownable

    respectCooldown
  • Field Details

    • baseBlock

      public final org.bukkit.Material baseBlock
    • miningLevel

      public final io.github.pylonmc.pylon.core.util.MiningLevel miningLevel
    • cooldownTicks

      public final int cooldownTicks
    • sound

      public final io.github.pylonmc.pylon.core.util.RandomizedSound sound
  • Constructor Details

    • Hammer

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

    • tryDoRecipe

      public boolean tryDoRecipe(@NotNull @NotNull org.bukkit.block.Block block, @Nullable @Nullable org.bukkit.entity.Player player)
    • 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
    • hammersWithMiningLevelAtLeast

      @NotNull public static @NotNull @Unmodifiable List<org.bukkit.inventory.ItemStack> hammersWithMiningLevelAtLeast(@NotNull @NotNull io.github.pylonmc.pylon.core.util.MiningLevel level)
    • createItemStack

      @NotNull public static @NotNull io.github.pylonmc.pylon.core.item.builder.ItemStackBuilder createItemStack(org.bukkit.NamespacedKey key, org.bukkit.Material material, double attackSpeed, double knockback, double attackDamage)