java.lang.Object
io.github.pylonmc.pylon.core.item.PylonItem
io.github.pylonmc.pylon.base.content.science.Loupe
All Implemented Interfaces:
io.github.pylonmc.pylon.core.item.base.PylonConsumable, io.github.pylonmc.pylon.core.item.base.PylonCooldownable, io.github.pylonmc.pylon.core.item.base.PylonInteractor, net.kyori.adventure.key.Keyed, org.bukkit.Keyed

public class Loupe extends io.github.pylonmc.pylon.core.item.PylonItem implements io.github.pylonmc.pylon.core.item.base.PylonInteractor, io.github.pylonmc.pylon.core.item.base.PylonConsumable
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final record 
     

    Nested classes/interfaces inherited from class io.github.pylonmc.pylon.core.item.PylonItem

    io.github.pylonmc.pylon.core.item.PylonItem.Companion
  • Field Summary

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

    Companion
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    static Map<org.bukkit.inventory.ItemRarity,Loupe.ItemConfig>
     
    void
    onConsumed(@NotNull org.bukkit.event.player.PlayerItemConsumeEvent event)
     
    void
    onUsedToRightClick(@NotNull org.bukkit.event.player.PlayerInteractEvent event)
     

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

    • Loupe

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

    • onUsedToRightClick

      public void onUsedToRightClick(@NotNull @NotNull org.bukkit.event.player.PlayerInteractEvent event)
      Specified by:
      onUsedToRightClick in interface io.github.pylonmc.pylon.core.item.base.PylonInteractor
    • onConsumed

      public void onConsumed(@NotNull @NotNull org.bukkit.event.player.PlayerItemConsumeEvent event)
      Specified by:
      onConsumed in interface io.github.pylonmc.pylon.core.item.base.PylonConsumable
    • getItemConfigs

      public static Map<org.bukkit.inventory.ItemRarity,Loupe.ItemConfig> getItemConfigs()