mirror of
https://github.com/PaperMC/Paper.git
synced 2024-08-18 18:22:57 +02:00
Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com> Co-authored-by: zml <zml@stellardrift.ca> Co-authored-by: Mariell Hoversholm <proximyst@proximyst.com>
44 lines
2.1 KiB
Diff
44 lines
2.1 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 aacbfadc91f580cc667603c8165eacbadee38cca..cbefdacee2d7b29a705de20935e20380a4632e14 100644
|
|
--- a/src/main/java/org/bukkit/Tag.java
|
|
+++ b/src/main/java/org/bukkit/Tag.java
|
|
@@ -421,6 +421,32 @@ public interface Tag<T extends Keyed> extends Keyed {
|
|
* Vanilla fluid tag representing water and flowing water.
|
|
*/
|
|
Tag<Fluid> FLUIDS_WATER = Bukkit.getTag(REGISTRY_FLUIDS, NamespacedKey.minecraft("water"), Fluid.class);
|
|
+ // Paper start
|
|
+ /**
|
|
+ * Key for the build in entity registry
|
|
+ */
|
|
+ String REGISTRY_ENTITIES = "entities";
|
|
+ /**
|
|
+ * Vanilla entity tag representing arrow entities.
|
|
+ */
|
|
+ Tag<org.bukkit.entity.EntityType> ARROWS = Bukkit.getTag(REGISTRY_ENTITIES, NamespacedKey.minecraft("arrows"), org.bukkit.entity.EntityType.class);
|
|
+ /**
|
|
+ * Vanilla entity tag representing entities that live in beehives
|
|
+ */
|
|
+ Tag<org.bukkit.entity.EntityType> BEEHIVE_INHABITORS = Bukkit.getTag(REGISTRY_ENTITIES, NamespacedKey.minecraft("beehive_inhabitors"), org.bukkit.entity.EntityType.class);
|
|
+ /**
|
|
+ * Vanilla entity tag representing projectiles that impact
|
|
+ */
|
|
+ Tag<org.bukkit.entity.EntityType> IMPACT_PROJECTILES = Bukkit.getTag(REGISTRY_ENTITIES, NamespacedKey.minecraft("impact_projectiles"), org.bukkit.entity.EntityType.class);
|
|
+ /**
|
|
+ * Vanilla entity tag for village raiders
|
|
+ */
|
|
+ Tag<org.bukkit.entity.EntityType> RAIDERS = Bukkit.getTag(REGISTRY_ENTITIES, NamespacedKey.minecraft("raiders"), org.bukkit.entity.EntityType.class);
|
|
+ /**
|
|
+ * Vanilla entity tag for skeleton types
|
|
+ */
|
|
+ Tag<org.bukkit.entity.EntityType> SKELETONS = Bukkit.getTag(REGISTRY_ENTITIES, NamespacedKey.minecraft("skeletons"), org.bukkit.entity.EntityType.class);
|
|
+ // Paper end
|
|
|
|
/**
|
|
* Returns whether or not this tag has an entry for the specified item.
|