Vinetos

Holograms

May 9th, 2015
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. public class HappyHologram {
  2.  
  3.  
  4. /*Player p = (Player) sender;
  5. HologramManager manager = new HologramManager(p.getLocation(), args[0].replaceAll("_", " "));
  6. manager.spawnHologram(Integer.parseInt(args[1]));
  7.  
  8. p.sendMessage("§5HolographicDisplays §7>> §6Object summoned!");*/
  9.  
  10. /* public static Location location;
  11.  
  12. private final static double distance = 0.25D;
  13.  
  14. private static String text;
  15.  
  16. public HappyHologram( Location location, String message ) {
  17. this.location = location;
  18.  
  19. this.text = message;
  20. }
  21.  
  22. public static void spawnHologram( int BlockHeight ) {
  23. WorldServer worldServer = (( CraftWorld ) location.getWorld() ).getHandle();
  24.  
  25. EntityArmorStand armor = new EntityArmorStand( worldServer );
  26. armor.setLocation( location.getX(), location.getY() + (BlockHeight * distance), location.getZ(), 0, 0 );
  27.  
  28. armor.setCustomName( text );
  29. armor.setCustomNameVisible( true );
  30. armor.setInvisible(true);
  31.  
  32. ((CraftWorld) location.getWorld()).getHandle().addEntity(armor);
  33.  
  34. }*/
  35.  
  36. }
Advertisement
Add Comment
Please, Sign In to add comment