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.CompanionNested classes/interfaces inherited from interface io.github.pylonmc.rebar.item.base.RebarBlockInteractor
io.github.pylonmc.rebar.item.base.RebarBlockInteractor.Companion -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal org.bukkit.Materialfinal intfinal io.github.pylonmc.rebar.util.RandomizedSoundfinal io.github.pylonmc.rebar.util.MiningLevelstatic final Randomfinal io.github.pylonmc.rebar.util.RandomizedSoundFields inherited from class io.github.pylonmc.rebar.item.RebarItem
CompanionFields inherited from interface io.github.pylonmc.rebar.item.base.RebarBlockInteractor
Companion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull List<@NotNull io.github.pylonmc.rebar.i18n.RebarArgument> voidonUsedToClickBlock(@NotNull org.bukkit.event.player.PlayerInteractEvent event, @NotNull org.bukkit.event.EventPriority priority) booleanbooleantryDoRecipe(@NotNull org.bukkit.block.Block block, @Nullable org.bukkit.entity.Player player, @Nullable org.bukkit.inventory.EquipmentSlot slot) voidtryUseAssemblyTable(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, suppressNameWarningsMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.Keyed
key
-
Field Details
-
random
-
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:
onUsedToClickBlockin interfaceio.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:
respectCooldownin interfaceio.github.pylonmc.rebar.item.base.RebarCooldownable
-
getPlaceholders
@NotNull public @NotNull List<@NotNull io.github.pylonmc.rebar.i18n.RebarArgument> getPlaceholders()- Overrides:
getPlaceholdersin classio.github.pylonmc.rebar.item.RebarItem
-