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-03-01 06:43:03 +01:00
|
|
|
index 42d0f31c2be2d39c4481f98c0756c4f1ae337717..20f033b9eda656cf0bdc91c3cf046f90a4be87fd 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-03-01 06:43:03 +01:00
|
|
|
@@ -702,6 +702,44 @@ public interface Tag<T extends Keyed> extends Keyed {
|
2021-10-02 19:21:49 +02:00
|
|
|
* Vanilla tag representing entities extra susceptible to freezing.
|
2021-06-11 14:02:28 +02:00
|
|
|
*/
|
2021-10-02 19:21:49 +02:00
|
|
|
Tag<EntityType> ENTITY_TYPES_FREEZE_HURTS_EXTRA_TYPES = Bukkit.getTag(REGISTRY_ENTITY_TYPES, NamespacedKey.minecraft("freeze_hurts_extra_types"), 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.
|