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 ClassesNested 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.RebarConsumable
io.github.pylonmc.rebar.item.base.RebarConsumable.CompanionNested classes/interfaces inherited from interface io.github.pylonmc.rebar.item.base.RebarInteractor
io.github.pylonmc.rebar.item.base.RebarInteractor.Companion -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.bukkit.persistence.PersistentDataType<org.bukkit.persistence.PersistentDataContainer, Map<Long, List<UUID>>> static final org.bukkit.NamespacedKeystatic final org.bukkit.persistence.PersistentDataType<org.bukkit.persistence.PersistentDataContainer, Map<org.bukkit.NamespacedKey, Integer>> final intstatic final Map<io.papermc.paper.registry.tag.Tag<org.bukkit.entity.EntityType>, Loupe.EntryConfig> static final Loupe.EntryConfigstatic final Map<org.bukkit.entity.EntityType, Loupe.EntryConfig> static final org.bukkit.NamespacedKeystatic 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
CompanionFields inherited from interface io.github.pylonmc.rebar.item.base.RebarConsumable
CompanionFields inherited from interface io.github.pylonmc.rebar.item.base.RebarInteractor
Companion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddEntry(org.bukkit.entity.Player player, net.kyori.adventure.text.ComponentLike name, org.bukkit.NamespacedKey type, Loupe.EntryConfig config) static booleanalreadyExamined(org.bukkit.entity.Player player, org.bukkit.block.Block block) static booleanalreadyExamined(org.bukkit.entity.Player player, org.bukkit.entity.LivingEntity entity) static Loupe.EntryConfiggetEntryConfig(org.bukkit.entity.EntityType type) static Loupe.EntryConfiggetEntryConfig(org.bukkit.Material type) static booleanhasUses(org.bukkit.entity.Player player, org.bukkit.entity.EntityType type) static booleanhasUses(org.bukkit.entity.Player player, org.bukkit.Material type) static voidmarkAlreadyExamined(org.bukkit.entity.Player player, org.bukkit.block.Block block) static voidmarkAlreadyExamined(org.bukkit.entity.Player player, org.bukkit.entity.LivingEntity entity) voidonConsumed(@NotNull org.bukkit.event.player.PlayerItemConsumeEvent event, @NotNull org.bukkit.event.EventPriority priority) voidonUsedToClick(@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, suppressNameWarningsMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.Keyed
keyMethods 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
-
EXAMINED_KEY
public static final org.bukkit.NamespacedKey EXAMINED_KEY -
EXAMINED_TYPE
-
CHUNK_EXAMINED_TYPE
-
ITEM_CONFIGS
-
ITEM_OVERRIDES
-
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
-
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:
onUsedToClickin interfaceio.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:
onConsumedin interfaceio.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
-
getEntryConfig
-