Advertisement
nfell2009

Untitled

May 9th, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. package uk.nfell2009.umbaska.Holograms;
  2.  
  3. import java.util.Collection;
  4. import java.util.Iterator;
  5.  
  6. import org.bukkit.Location;
  7.  
  8. import de.inventivegames.hologram.Hologram;
  9. import de.inventivegames.hologram.HologramAPI;
  10.  
  11. public class HologramManager {
  12.  
  13. public Hologram getHologramByLocation(Location location) {
  14. Collection<Hologram> ch = HologramAPI.getHolograms();
  15. Iterator<Hologram> iter = ch.iterator();
  16. while (iter.hasNext()) {
  17. Hologram current = iter.next();
  18. if (current.getLocation() == location) {
  19. return current;
  20. }
  21. }
  22. return null;
  23. }
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement