Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Verification Seal #34

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

cpaca
Copy link
Contributor

@cpaca cpaca commented Jun 28, 2024

Should I just leave this in Draft until we depend on MC1.21? Since all of the enchantments will be semi-redone anyway with 1.21 enchantment system.

@cpaca cpaca marked this pull request as draft June 28, 2024 06:00
@cpaca
Copy link
Contributor Author

cpaca commented Jun 28, 2024

Ah. This one's staying in Draft form until we get 1.20.6 dependencies (most likely 1.21, honestly)

It'd be better to use CartographyItemEvent or CraftItemEvent instead of InventoryClickEvent for this one, but I don't think that function exists in 1.20.1.

Compiler and IDE throw an error when I try to use CartographyItemEvent, but I can find it in the documentation for 1.21 and 1.20.6.

1.20.6 docs: https://jd.papermc.io/paper/1.20.6/io/papermc/paper/event/player/CartographyItemEvent.html
1.21 docs: https://jd.papermc.io/paper/1.21/io/papermc/paper/event/player/CartographyItemEvent.html


default void onPlayerToggleSneak(PlayerToggleSneakEvent event, ItemStack itemStack) {
}

default void onInventoryClicked(InventoryClickEvent event, ItemStack itemStack) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Method name should match api's event name. No exceptions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants