Skip to content

Add TrialSpawner methods for end of cooldown and next mob spawn time#12025

Merged
lynxplay merged 9 commits into
PaperMC:mainfrom
Doc94:feature/trial-spawner-state-more-methods
Feb 12, 2025
Merged

Add TrialSpawner methods for end of cooldown and next mob spawn time#12025
lynxplay merged 9 commits into
PaperMC:mainfrom
Doc94:feature/trial-spawner-state-more-methods

Conversation

@Doc94
Copy link
Copy Markdown
Member

@Doc94 Doc94 commented Jan 27, 2025

This resolve #12023 by adding two new methods related to the when the cooldown ends in gametime and when the next mob spawn in gametime.

ref: https://minecraft.wiki/w/Trial_Spawner

@Doc94 Doc94 requested a review from a team as a code owner January 27, 2025 18:51
Comment thread paper-api/src/main/java/org/bukkit/block/TrialSpawner.java Outdated
Comment thread paper-api/src/main/java/org/bukkit/block/TrialSpawner.java Outdated
@Doc94 Doc94 requested a review from lynxplay January 29, 2025 01:32
@kennytv kennytv added type: feature Request for a new Feature. scope: api labels Jan 31, 2025
Copy link
Copy Markdown
Member

@kennytv kennytv left a comment

Choose a reason for hiding this comment

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

Gametime -> game time and you could maybe add a @see tag for a method to get the game time, else looks good

@Doc94
Copy link
Copy Markdown
Member Author

Doc94 commented Jan 31, 2025

based in others PR is valid implement jspecify in this classes or can be done in another PR?

@kennytv
Copy link
Copy Markdown
Member

kennytv commented Jan 31, 2025

Since you're already changing all method lines you might as well update the annotations here yeah 👍 add nullmarked at the top and remove the explicit notnull annotations

Doc94 added 3 commits January 31, 2025 09:15
…e/trial-spawner-state-more-methods

# Conflicts:
#	paper-api/src/main/java/org/bukkit/block/TrialSpawner.java
Comment thread paper-api/src/main/java/org/bukkit/block/TrialSpawner.java Outdated
Comment thread test-plugin/src/main/java/io/papermc/testplugin/TestPlugin.java Outdated
@lynxplay lynxplay merged commit 0680485 into PaperMC:main Feb 12, 2025
@Doc94 Doc94 deleted the feature/trial-spawner-state-more-methods branch February 12, 2025 22:46
Y2Kwastaken pushed a commit to Y2Kwastaken/Paper that referenced this pull request Feb 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: api type: feature Request for a new Feature.

Projects

Status: Merged

Development

Successfully merging this pull request may close these issues.

TrialSpawner API is very lacking

4 participants