content: package me.earth.earthhack.impl.managers.minecraft.combat;
  
  import me.earth.earthhack.api.cache.ModuleCache;
  import me.earth.earthhack.impl.modules.Caches;
  import me.earth.earthhack.impl.modules.combat.autocrystal.AutoCrystal;
  import me.earth.earthhack.impl.modules.combat.autotrap.AutoTrap;
  import me.earth.earthhack.impl.modules.combat.killaura.KillAura;
  import net.minecraft.entity.Entity;
  import net.minecraft.entity.player.EntityPlayer;
  
  public class TargetManager
  {
      private static final ModuleCache<AutoCrystal> AUTO_CRYSTAL =
              Caches.getModule(AutoCrystal.class);
      private static final ModuleCache<KillAura> KILL_AURA =
              Caches.getModule(KillAura.class);
      private static final ModuleCache<AutoTrap> AUTO_TRAP =
              Caches.getModule(AutoTrap.class);
  
      public Entity getKillAura()
      {
          return KILL_AURA.returnIfPresent(KillAura::getTarget, null);
      }
  
      public EntityPlayer getAutoTrap()
      {
          return AUTO_TRAP.returnIfPresent(AutoTrap::getTarget, null);
      }
  
      public EntityPlayer getAutoCrystal()
      {
          return AUTO_CRYSTAL.returnIfPresent(AutoCrystal::getTarget, null);
      }
  
      public Entity getCrystal()
      {
          return AUTO_CRYSTAL.returnIfPresent(AutoCrystal::getCrystal, null);
      }
  
  }
  