From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Lexi Date: Thu, 23 Jun 2022 22:03:18 -0400 Subject: [PATCH] Add Player#getHiddenEntities API diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java index 401a992f340ba441bf81ebf54108b0e5b0421def..0dbbf842a3e25da23d4b7c574fcc56170162601d 100644 --- a/src/main/java/org/bukkit/entity/Player.java +++ b/src/main/java/org/bukkit/entity/Player.java @@ -1848,6 +1848,17 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM @ApiStatus.Experimental public boolean canSee(@NotNull Entity entity); + // Parchment start + /** + * Gets a view of the hidden entity UUIDs. + * + * @param plugin Plugin that has hidden entities + * @return a view of hidden entity UUIDs + */ + @ApiStatus.Experimental + public java.util.@NotNull Set getHiddenEntities(@NotNull Plugin plugin); + // Parchment end + // Paper start /** * Returns whether the {@code other} player is listed for {@code this}.