From 7d9ff86dc59fb13859065b19f4605c19a5b82722 Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 25 Mar 2020 14:05:07 +0100 Subject: [PATCH] Remove static hologram methods --- .../de/epiceric/shopchest/nms/Hologram.java | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/src/main/java/de/epiceric/shopchest/nms/Hologram.java b/src/main/java/de/epiceric/shopchest/nms/Hologram.java index afcbe56..4e9ed8b 100644 --- a/src/main/java/de/epiceric/shopchest/nms/Hologram.java +++ b/src/main/java/de/epiceric/shopchest/nms/Hologram.java @@ -11,31 +11,6 @@ import java.util.*; import java.util.concurrent.ConcurrentHashMap; public class Hologram { - - private static final List HOLOGRAMS = new ArrayList<>(); - - /** - * @param armorStand Armor stand that's part of a hologram - * @return Hologram, the armor stand is part of - */ - public static Hologram getHologram(ArmorStand armorStand) { - for (Hologram hologram : HOLOGRAMS) { - if (hologram.contains(armorStand)) { - return hologram; - } - } - - return null; - } - - /** - * @param armorStand Armor stand to check - * @return Whether the armor stand is part of a hologram - */ - public static boolean isPartOfHologram(ArmorStand armorStand) { - return getHologram(armorStand) != null; - } - // concurrent since update task is in async thread // since this is a fake entity, hologram is hidden per default private final Set viewers = Collections.newSetFromMap(new ConcurrentHashMap()); @@ -54,7 +29,6 @@ public class Hologram { } this.exists = true; - HOLOGRAMS.add(this); } /** @@ -148,7 +122,6 @@ public class Hologram { wrappers.clear(); exists = false; - HOLOGRAMS.remove(this); } /**