Skip to content

Add a component method#108

Merged
PuppyTransGirl merged 1 commit intomasterfrom
refactor/menu-api-methods
Feb 26, 2026
Merged

Add a component method#108
PuppyTransGirl merged 1 commit intomasterfrom
refactor/menu-api-methods

Conversation

@PuppyTransGirl
Copy link
Copy Markdown
Owner

No description provided.

@PuppyTransGirl PuppyTransGirl added this to the 3.4.1 milestone Feb 26, 2026
@PuppyTransGirl PuppyTransGirl self-assigned this Feb 26, 2026
@PuppyTransGirl PuppyTransGirl added the enhancement Improvement to an existing feature label Feb 26, 2026
@PuppyTransGirl PuppyTransGirl merged commit 5fb61af into master Feb 26, 2026
6 of 7 checks passed
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Feb 26, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6873aef and 6d5c40f.

📒 Files selected for processing (6)
  • src/main/java/toutouchien/niveriaapi/menu/component/interactive/Button.java
  • src/main/java/toutouchien/niveriaapi/menu/component/interactive/DoubleDropButton.java
  • src/main/java/toutouchien/niveriaapi/menu/component/interactive/Selector.java
  • src/main/java/toutouchien/niveriaapi/menu/component/interactive/Toggle.java
  • src/main/java/toutouchien/niveriaapi/menu/component/layout/Grid.java
  • src/main/java/toutouchien/niveriaapi/menu/event/NiveriaInventoryClickEvent.java

📝 Walkthrough

Walkthrough

The changes establish a mechanism for interactive components to associate themselves with click events. Multiple interactive component classes (Button, DoubleDropButton, Selector, Toggle) and the Grid layout component are modified to call event.component(this) during event handling. The NiveriaInventoryClickEvent class is enhanced with a new nullable MenuComponent field and corresponding getter/setter methods to support this component association. Additionally, unused BukkitTask imports are removed from component files.

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 26, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improvement to an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant