Skip to content

Implement Verification Seal - #34

Draft
cpaca wants to merge 2 commits into
TraceLTRC:masterfrom
cpaca:Verification-Seal
Draft

Implement Verification Seal#34
cpaca wants to merge 2 commits into
TraceLTRC:masterfrom
cpaca:Verification-Seal

Conversation

@cpaca

@cpaca cpaca commented Jun 28, 2024

Copy link
Copy Markdown
Contributor

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

cpaca commented Jun 28, 2024

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
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