mirror of
https://github.com/PaperMC/Paper.git
synced 2024-08-19 02:33:04 +02:00
56 lines
2.2 KiB
Diff
56 lines
2.2 KiB
Diff
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
|
|
index 34d23f53acf00620223731c4fdacffde9cff41a8..ddd195a834d1756c903644fc1faffe7ebcb238ed 100644
|
|
--- a/src/main/java/org/bukkit/Tag.java
|
|
+++ b/src/main/java/org/bukkit/Tag.java
|
|
@@ -698,6 +698,44 @@ public interface Tag<T extends Keyed> extends Keyed {
|
|
* Vanilla tag representing entities extra susceptible to freezing.
|
|
*/
|
|
Tag<EntityType> ENTITY_TYPES_FREEZE_HURTS_EXTRA_TYPES = Bukkit.getTag(REGISTRY_ENTITY_TYPES, NamespacedKey.minecraft("freeze_hurts_extra_types"), EntityType.class);
|
|
+ // Paper start
|
|
+ /**
|
|
+ * Key for the built-in entity registry
|
|
+ * @deprecated use {@link #REGISTRY_ENTITY_TYPES}
|
|
+ */
|
|
+ @Deprecated(forRemoval = true)
|
|
+ String REGISTRY_ENTITIES = REGISTRY_ENTITY_TYPES;
|
|
+ /**
|
|
+ * Vanilla entity tag representing arrow entities.
|
|
+ * @deprecated use {@link #ENTITY_TYPES_ARROWS}
|
|
+ */
|
|
+ @Deprecated(forRemoval = true)
|
|
+ Tag<EntityType> ARROWS = ENTITY_TYPES_ARROWS;
|
|
+ /**
|
|
+ * Vanilla entity tag representing entities that live in beehives
|
|
+ * @deprecated use {@link #ENTITY_TYPES_BEEHIVE_INHABITORS}
|
|
+ */
|
|
+ @Deprecated(forRemoval = true)
|
|
+ Tag<EntityType> BEEHIVE_INHABITORS = ENTITY_TYPES_BEEHIVE_INHABITORS;
|
|
+ /**
|
|
+ * Vanilla entity tag representing projectiles that impact
|
|
+ * @deprecated use {@link #ENTITY_TYPES_IMPACT_PROJECTILES}
|
|
+ */
|
|
+ @Deprecated(forRemoval = true)
|
|
+ Tag<EntityType> IMPACT_PROJECTILES = ENTITY_TYPES_IMPACT_PROJECTILES;
|
|
+ /**
|
|
+ * Vanilla entity tag for village raiders
|
|
+ * @deprecated use {@link #ENTITY_TYPES_RAIDERS}
|
|
+ */
|
|
+ @Deprecated(forRemoval = true)
|
|
+ Tag<EntityType> RAIDERS = ENTITY_TYPES_RAIDERS;
|
|
+ /**
|
|
+ * Vanilla entity tag for skeleton types
|
|
+ * @deprecated use {@link #ENTITY_TYPES_SKELETONS}
|
|
+ */
|
|
+ @Deprecated(forRemoval = true)
|
|
+ Tag<EntityType> SKELETONS = ENTITY_TYPES_SKELETONS;
|
|
+ // Paper end
|
|
|
|
/**
|
|
* Returns whether or not this tag has an entry for the specified item.
|