mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Rename Priority to PostOrder
This commit is contained in:
parent
30303d5f16
commit
2277b98dfd
4 changed files with 14 additions and 17 deletions
|
@ -26,7 +26,6 @@
|
|||
package org.geysermc.geyser.api.event;
|
||||
|
||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
import org.geysermc.geyser.api.extension.Extension;
|
||||
|
||||
import java.util.function.Consumer;
|
||||
|
@ -67,11 +66,11 @@ public interface EventSubscription<T extends Event> {
|
|||
Extension owner();
|
||||
|
||||
/**
|
||||
* Gets the priority of this event subscription.
|
||||
* Gets the post order of this event subscription.
|
||||
*
|
||||
* @return the priority of this event subscription
|
||||
* @return the post order of this event subscription
|
||||
*/
|
||||
Subscribe.Priority priority();
|
||||
Subscribe.PostOrder order();
|
||||
|
||||
/**
|
||||
* Gets if this event subscription is active.
|
||||
|
|
|
@ -28,7 +28,6 @@ package org.geysermc.geyser.api.event;
|
|||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
|
@ -50,20 +49,19 @@ import java.lang.annotation.Target;
|
|||
public @interface Subscribe {
|
||||
|
||||
/**
|
||||
* The {@link Priority} of the event
|
||||
* The {@link PostOrder} of the event
|
||||
*
|
||||
* @return the priority of the event
|
||||
* @return the post order of the event
|
||||
*/
|
||||
@NonNull
|
||||
Priority priority() default Priority.NORMAL;
|
||||
Subscribe.PostOrder postOrder() default PostOrder.NORMAL;
|
||||
|
||||
/**
|
||||
* Represents the priority of an event.
|
||||
* Represents the post order of an event.
|
||||
*/
|
||||
@Accessors(fluent = true)
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
enum Priority {
|
||||
enum PostOrder {
|
||||
|
||||
/**
|
||||
* The lowest priority. Called first to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue