Class Hammer

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

public class Hammer extends io.github.pylonmc.rebar.item.RebarItem implements io.github.pylonmc.rebar.item.base.RebarBlockInteractor
  • 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
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final org.bukkit.Material
     
    final int
     
    final io.github.pylonmc.rebar.util.RandomizedSound
     
    final io.github.pylonmc.rebar.util.MiningLevel
     
    static final Random
     
    static final Map<UUID,Integer>
     
    final io.github.pylonmc.rebar.util.RandomizedSound
     

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

    Companion

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

    Companion
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    @NotNull List<@NotNull io.github.pylonmc.rebar.i18n.RebarArgument>
     
    void
    onUsedToClickBlock(@NotNull org.bukkit.event.player.PlayerInteractEvent event, @NotNull org.bukkit.event.EventPriority priority)
     
    boolean
     
    boolean
    tryDoRecipe(@NotNull org.bukkit.block.Block block, @Nullable org.bukkit.entity.Player player, @Nullable org.bukkit.inventory.EquipmentSlot slot)
     
    void
    tryUseAssemblyTable(org.bukkit.block.Block clickedBlock, org.bukkit.entity.Player player)
     

    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
  • Field Details

    • random

      public static final Random random
    • remainingUseMap

      public static final Map<UUID,Integer> remainingUseMap
    • baseBlock

      public final org.bukkit.Material baseBlock
    • miningLevel

      public final io.github.pylonmc.rebar.util.MiningLevel miningLevel
    • cooldownTicks

      public final int cooldownTicks
    • sound

      public final io.github.pylonmc.rebar.util.RandomizedSound sound
    • failSound

      public final io.github.pylonmc.rebar.util.RandomizedSound failSound
  • 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, @Nullable @Nullable org.bukkit.inventory.EquipmentSlot slot)
    • 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
    • tryUseAssemblyTable

      public void tryUseAssemblyTable(org.bukkit.block.Block clickedBlock, org.bukkit.entity.Player player)
    • respectCooldown

      public boolean respectCooldown()
      Specified by:
      respectCooldown in interface io.github.pylonmc.rebar.item.base.RebarCooldownable
    • getPlaceholders

      @NotNull public @NotNull List<@NotNull io.github.pylonmc.rebar.i18n.RebarArgument> getPlaceholders()
      Overrides:
      getPlaceholders in class io.github.pylonmc.rebar.item.RebarItem