API 'done'

This commit is contained in:
Nassim Jahnke 2023-03-14 18:21:11 +01:00
parent 08ab8edb76
commit 7936e7a615
418 changed files with 56 additions and 84 deletions

View File

@ -9,10 +9,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
--- a/src/main/java/org/bukkit/Tag.java --- a/src/main/java/org/bukkit/Tag.java
+++ b/src/main/java/org/bukkit/Tag.java +++ b/src/main/java/org/bukkit/Tag.java
@@ -0,0 +0,0 @@ public interface Tag<T extends Keyed> extends Keyed { @@ -0,0 +0,0 @@ public interface Tag<T extends Keyed> extends Keyed {
* Vanilla tag representing entities which are dismounted when underwater.
*/ */
@Deprecated(forRemoval = true) Tag<EntityType> ENTITY_TYPES_DISMOUNTS_UNDERWATER = Bukkit.getTag(REGISTRY_ENTITY_TYPES, NamespacedKey.minecraft("dismounts_underwater"), EntityType.class);
Tag<EntityType> SKELETONS = ENTITY_TYPES_SKELETONS; + // Paper start
+
+ String REGISTRY_GAME_EVENTS = "game_events"; + String REGISTRY_GAME_EVENTS = "game_events";
+ +
+ /** + /**
@ -24,6 +24,12 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ * Tag for game events that are ignored if the entity is sneaking + * Tag for game events that are ignored if the entity is sneaking
+ */ + */
+ Tag<GameEvent> GAME_EVENT_IGNORE_VIBRATIONS_SNEAKING = Bukkit.getTag(REGISTRY_GAME_EVENTS, NamespacedKey.minecraft("ignore_vibrations_sneaking"), GameEvent.class); + Tag<GameEvent> GAME_EVENT_IGNORE_VIBRATIONS_SNEAKING = Bukkit.getTag(REGISTRY_GAME_EVENTS, NamespacedKey.minecraft("ignore_vibrations_sneaking"), GameEvent.class);
// Paper end +
+ /**
+ * Tag for game events that an allay can listen to
+ */
+ Tag<GameEvent> GAME_EVENT_ALLAY_CAN_LISTEN = Bukkit.getTag(REGISTRY_GAME_EVENTS, NamespacedKey.minecraft("allay_can_listen"), GameEvent.class);
+ // Paper end
/** /**
* Returns whether or not this tag has an entry for the specified item.

Some files were not shown because too many files have changed in this diff Show More