Paper/patches/api/0260-Added-Vanilla-Entity-T...

56 lines
2.2 KiB
Diff
Raw Normal View History

2021-06-11 14:02:28 +02:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Jake Potrebic <jake.m.potrebic@gmail.com>
Date: Sun, 3 Jan 2021 20:03:40 -0800
Subject: [PATCH] Added Vanilla Entity Tags
diff --git a/src/main/java/org/bukkit/Tag.java b/src/main/java/org/bukkit/Tag.java
2022-12-07 17:46:46 +01:00
index 15699ee58e06880a508689f761ecfdb77d44d182..be5bb4210a11154013e2fc80653bf467ebdaf15f 100644
2021-06-11 14:02:28 +02:00
--- a/src/main/java/org/bukkit/Tag.java
+++ b/src/main/java/org/bukkit/Tag.java
2022-12-07 17:46:46 +01:00
@@ -839,6 +839,44 @@ public interface Tag<T extends Keyed> extends Keyed {
2022-06-07 19:20:30 +02:00
* Vanilla tag representing entities which can be eaten by frogs.
2021-06-11 14:02:28 +02:00
*/
2022-06-07 19:20:30 +02:00
Tag<EntityType> ENTITY_TYPES_FROG_FOOD = Bukkit.getTag(REGISTRY_ENTITY_TYPES, NamespacedKey.minecraft("frog_food"), EntityType.class);
2021-06-11 14:02:28 +02:00
+ // Paper start
+ /**
+ * Key for the built-in entity registry
+ * @deprecated use {@link #REGISTRY_ENTITY_TYPES}
2021-06-11 14:02:28 +02:00
+ */
+ @Deprecated(forRemoval = true)
2021-11-24 20:02:36 +01:00
+ String REGISTRY_ENTITIES = REGISTRY_ENTITY_TYPES;
2021-06-11 14:02:28 +02:00
+ /**
+ * Vanilla entity tag representing arrow entities.
+ * @deprecated use {@link #ENTITY_TYPES_ARROWS}
2021-06-11 14:02:28 +02:00
+ */
+ @Deprecated(forRemoval = true)
2021-11-24 20:02:36 +01:00
+ Tag<EntityType> ARROWS = ENTITY_TYPES_ARROWS;
2021-06-11 14:02:28 +02:00
+ /**
+ * Vanilla entity tag representing entities that live in beehives
+ * @deprecated use {@link #ENTITY_TYPES_BEEHIVE_INHABITORS}
2021-06-11 14:02:28 +02:00
+ */
+ @Deprecated(forRemoval = true)
2021-11-24 20:02:36 +01:00
+ Tag<EntityType> BEEHIVE_INHABITORS = ENTITY_TYPES_BEEHIVE_INHABITORS;
2021-06-11 14:02:28 +02:00
+ /**
+ * Vanilla entity tag representing projectiles that impact
+ * @deprecated use {@link #ENTITY_TYPES_IMPACT_PROJECTILES}
2021-06-11 14:02:28 +02:00
+ */
+ @Deprecated(forRemoval = true)
2021-11-24 20:02:36 +01:00
+ Tag<EntityType> IMPACT_PROJECTILES = ENTITY_TYPES_IMPACT_PROJECTILES;
2021-06-11 14:02:28 +02:00
+ /**
+ * Vanilla entity tag for village raiders
+ * @deprecated use {@link #ENTITY_TYPES_RAIDERS}
2021-06-11 14:02:28 +02:00
+ */
+ @Deprecated(forRemoval = true)
2021-11-24 20:02:36 +01:00
+ Tag<EntityType> RAIDERS = ENTITY_TYPES_RAIDERS;
2021-06-11 14:02:28 +02:00
+ /**
+ * Vanilla entity tag for skeleton types
+ * @deprecated use {@link #ENTITY_TYPES_SKELETONS}
2021-06-11 14:02:28 +02:00
+ */
+ @Deprecated(forRemoval = true)
2021-11-24 20:02:36 +01:00
+ Tag<EntityType> SKELETONS = ENTITY_TYPES_SKELETONS;
2021-06-11 14:02:28 +02:00
+ // Paper end
/**
* Returns whether or not this tag has an entry for the specified item.