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-06-07 19:20:30 +02:00
|
|
|
index 33f022a01e44e6b806e6d38eef003da161b6be53..9694b862d62afbaa831735a6f6d095315bcdf37c 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-06-07 19:20:30 +02:00
|
|
|
@@ -811,6 +811,44 @@ public interface Tag<T extends Keyed> extends Keyed {
|
|
|
|
* 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
|
|
|
|
+ /**
|
2021-10-02 19:21:49 +02:00
|
|
|
+ * Key for the built-in entity registry
|
|
|
|
+ * @deprecated use {@link #REGISTRY_ENTITY_TYPES}
|
2021-06-11 14:02:28 +02:00
|
|
|
+ */
|
2021-10-02 19:21:49 +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.
|
2021-10-02 19:21:49 +02:00
|
|
|
+ * @deprecated use {@link #ENTITY_TYPES_ARROWS}
|
2021-06-11 14:02:28 +02:00
|
|
|
+ */
|
2021-10-02 19:21:49 +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
|
2021-10-02 19:21:49 +02:00
|
|
|
+ * @deprecated use {@link #ENTITY_TYPES_BEEHIVE_INHABITORS}
|
2021-06-11 14:02:28 +02:00
|
|
|
+ */
|
2021-10-02 19:21:49 +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
|
2021-10-02 19:21:49 +02:00
|
|
|
+ * @deprecated use {@link #ENTITY_TYPES_IMPACT_PROJECTILES}
|
2021-06-11 14:02:28 +02:00
|
|
|
+ */
|
2021-10-02 19:21:49 +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
|
2021-10-02 19:21:49 +02:00
|
|
|
+ * @deprecated use {@link #ENTITY_TYPES_RAIDERS}
|
2021-06-11 14:02:28 +02:00
|
|
|
+ */
|
2021-10-02 19:21:49 +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
|
2021-10-02 19:21:49 +02:00
|
|
|
+ * @deprecated use {@link #ENTITY_TYPES_SKELETONS}
|
2021-06-11 14:02:28 +02:00
|
|
|
+ */
|
2021-10-02 19:21:49 +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.
|