Package org.getspout.spoutapi.player

Examples of org.getspout.spoutapi.player.PlayerInformation


  private String title = getName();
  private HashMap<String, String> titlesFor = new HashMap<String, String>();

  @Override
  public void updateEntitySkins(List<LivingEntity> entities) {
    PlayerInformation info = getInformation();
    PlayerInformation global = SpoutManager.getPlayerChunkMap().getGlobalInfo();
    for (LivingEntity le : entities) {
      for (EntitySkinType type : EntitySkinType.values()) {
        String skin = null;
        if (info != null) {
          skin = getInformation().getEntitySkin(le, type);
        }
        if (skin == null) {
          skin = global.getEntitySkin(le, type);
        }
        if (skin != null) {
          sendDelayedPacket(new PacketEntitySkin(le, skin, type.getId()));
        }
      }
View Full Code Here


      }
    }
  }

  public void updateEntitySkins(LivingEntity entity) {
    PlayerInformation info = getInformation();
    PlayerInformation global = SpoutManager.getPlayerChunkMap()
        .getGlobalInfo();
    for (EntitySkinType type : EntitySkinType.values()) {
      String skin = null;
      if (info != null) {
        skin = getInformation().getEntitySkin(entity, type);
      }
      if (skin == null) {
        skin = global.getEntitySkin(entity, type);
      }
      if (skin != null) {
        sendDelayedPacket(new PacketEntitySkin(entity, skin,
              type.getId()));
      }
View Full Code Here

    return null;
  }

  @Override
  public PlayerInformation getPlayerInfo(Player player) {
    PlayerInformation info = infoMap.get(player.getName());
    if (info == null) {
      info = new SimplePlayerInformation();
      infoMap.put(player.getName(), info);
    }
    return info;
View Full Code Here

TOP

Related Classes of org.getspout.spoutapi.player.PlayerInformation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.