Class Loupe

java.lang.Object
io.github.pylonmc.rebar.item.RebarItem
io.github.pylonmc.pylon.content.science.Loupe
All Implemented Interfaces:
io.github.pylonmc.rebar.item.base.RebarConsumable, io.github.pylonmc.rebar.item.base.RebarCooldownable, io.github.pylonmc.rebar.item.base.RebarInteractor, net.kyori.adventure.key.Keyed, org.bukkit.Keyed

public final class Loupe extends io.github.pylonmc.rebar.item.RebarItem implements io.github.pylonmc.rebar.item.base.RebarInteractor, io.github.pylonmc.rebar.item.base.RebarConsumable
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final record 
     

    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.RebarConsumable

    io.github.pylonmc.rebar.item.base.RebarConsumable.Companion

    Nested classes/interfaces inherited from interface io.github.pylonmc.rebar.item.base.RebarInteractor

    io.github.pylonmc.rebar.item.base.RebarInteractor.Companion
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.bukkit.persistence.PersistentDataType<org.bukkit.persistence.PersistentDataContainer, Map<Long, List<UUID>>>
     
    static final org.bukkit.NamespacedKey
     
    static final org.bukkit.persistence.PersistentDataType<org.bukkit.persistence.PersistentDataContainer, Map<org.bukkit.NamespacedKey, Integer>>
     
    final int
     
    static final Map<io.papermc.paper.registry.tag.Tag<org.bukkit.entity.EntityType>, Loupe.EntryConfig>
     
    static final Loupe.EntryConfig
     
    static final Map<org.bukkit.entity.EntityType, Loupe.EntryConfig>
     
    static final org.bukkit.NamespacedKey
     
    static final org.bukkit.persistence.ListPersistentDataType<long[],UUID>
     
    static final Map<org.bukkit.inventory.ItemRarity, Loupe.EntryConfig>
     
    static final Map<org.bukkit.Material, Loupe.EntryConfig>
     

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

    Companion

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

    Companion

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

    Companion
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    static void
    addEntry(org.bukkit.entity.Player player, net.kyori.adventure.text.ComponentLike name, org.bukkit.NamespacedKey type, Loupe.EntryConfig config)
     
    static boolean
    alreadyExamined(org.bukkit.entity.Player player, org.bukkit.block.Block block)
     
    static boolean
    alreadyExamined(org.bukkit.entity.Player player, org.bukkit.entity.LivingEntity entity)
     
    getEntryConfig(org.bukkit.entity.EntityType type)
     
    getEntryConfig(org.bukkit.Material type)
     
    static boolean
    hasUses(org.bukkit.entity.Player player, org.bukkit.entity.EntityType type)
     
    static boolean
    hasUses(org.bukkit.entity.Player player, org.bukkit.Material type)
     
    static void
    markAlreadyExamined(org.bukkit.entity.Player player, org.bukkit.block.Block block)
     
    static void
    markAlreadyExamined(org.bukkit.entity.Player player, org.bukkit.entity.LivingEntity entity)
     
    void
    onConsumed(@NotNull org.bukkit.event.player.PlayerItemConsumeEvent event, @NotNull org.bukkit.event.EventPriority priority)
     
    void
    onUsedToClick(@NotNull org.bukkit.event.player.PlayerInteractEvent event, @NotNull org.bukkit.event.EventPriority priority)
     

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

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

    Methods inherited from interface io.github.pylonmc.rebar.item.base.RebarCooldownable

    respectCooldown
  • Field Details

    • CONSUMED_KEY

      public static final org.bukkit.NamespacedKey CONSUMED_KEY
    • CONSUMED_TYPE

      public static final org.bukkit.persistence.PersistentDataType<org.bukkit.persistence.PersistentDataContainer, Map<org.bukkit.NamespacedKey, Integer>> CONSUMED_TYPE
    • EXAMINED_KEY

      public static final org.bukkit.NamespacedKey EXAMINED_KEY
    • EXAMINED_TYPE

      public static final org.bukkit.persistence.ListPersistentDataType<long[],UUID> EXAMINED_TYPE
    • CHUNK_EXAMINED_TYPE

      public static final org.bukkit.persistence.PersistentDataType<org.bukkit.persistence.PersistentDataContainer, Map<Long, List<UUID>>> CHUNK_EXAMINED_TYPE
    • ITEM_CONFIGS

      public static final Map<org.bukkit.inventory.ItemRarity, Loupe.EntryConfig> ITEM_CONFIGS
    • ITEM_OVERRIDES

      public static final Map<org.bukkit.Material, Loupe.EntryConfig> ITEM_OVERRIDES
    • ENTITY_DEFAULT_CONFIG

      public static final Loupe.EntryConfig ENTITY_DEFAULT_CONFIG
    • ENTITY_CONFIGS

      public static final Map<io.papermc.paper.registry.tag.Tag<org.bukkit.entity.EntityType>, Loupe.EntryConfig> ENTITY_CONFIGS
    • ENTITY_OVERRIDES

      public static final Map<org.bukkit.entity.EntityType, Loupe.EntryConfig> ENTITY_OVERRIDES
    • cooldownTicks

      public final int cooldownTicks
  • Constructor Details

    • Loupe

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

    • onUsedToClick

      public void onUsedToClick(@NotNull @NotNull org.bukkit.event.player.PlayerInteractEvent event, @NotNull @NotNull org.bukkit.event.EventPriority priority)
      Specified by:
      onUsedToClick in interface io.github.pylonmc.rebar.item.base.RebarInteractor
    • onConsumed

      public void onConsumed(@NotNull @NotNull org.bukkit.event.player.PlayerItemConsumeEvent event, @NotNull @NotNull org.bukkit.event.EventPriority priority)
      Specified by:
      onConsumed in interface io.github.pylonmc.rebar.item.base.RebarConsumable
    • markAlreadyExamined

      public static void markAlreadyExamined(org.bukkit.entity.Player player, org.bukkit.block.Block block)
    • markAlreadyExamined

      public static void markAlreadyExamined(org.bukkit.entity.Player player, org.bukkit.entity.LivingEntity entity)
    • alreadyExamined

      public static boolean alreadyExamined(org.bukkit.entity.Player player, org.bukkit.block.Block block)
    • alreadyExamined

      public static boolean alreadyExamined(org.bukkit.entity.Player player, org.bukkit.entity.LivingEntity entity)
    • hasUses

      public static boolean hasUses(org.bukkit.entity.Player player, org.bukkit.Material type)
    • hasUses

      public static boolean hasUses(org.bukkit.entity.Player player, org.bukkit.entity.EntityType type)
    • addEntry

      public static void addEntry(org.bukkit.entity.Player player, net.kyori.adventure.text.ComponentLike name, org.bukkit.NamespacedKey type, Loupe.EntryConfig config)
    • getEntryConfig

      public static Loupe.EntryConfig getEntryConfig(org.bukkit.Material type)
    • getEntryConfig

      public static Loupe.EntryConfig getEntryConfig(org.bukkit.entity.EntityType type)