-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add TrialSpawner methods for end of cooldown and next mob spawn time #12025
base: main
Are you sure you want to change the base?
Add TrialSpawner methods for end of cooldown and next mob spawn time #12025
Conversation
There was a problem hiding this 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
based in others PR is valid implement jspecify in this classes or can be done in another PR? |
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 |
…e/trial-spawner-state-more-methods # Conflicts: # paper-api/src/main/java/org/bukkit/block/TrialSpawner.java
@@ -102,16 +132,15 @@ public interface TrialSpawner extends TileState { | |||
* @return a collection of entities this spawner is tracking or an empty | |||
* collection if there aren't any | |||
*/ | |||
@NotNull | |||
public Collection<Entity> getTrackedEntities(); | |||
Collection<Entity> getTrackedEntities(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why there is a space here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
skill issue.
@Override | ||
public void onEnable() { | ||
this.getServer().getPluginManager().registerEvents(this, this); | ||
|
||
// io.papermc.testplugin.brigtests.Registration.registerViaOnEnable(this); | ||
testBlockData = Material.PISTON.createBlockData(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't forget to revert that
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