Package net.minecraft.util.com.mojang.authlib

Examples of net.minecraft.util.com.mojang.authlib.GameProfile


            OfflinePlayer player = Bukkit.getOfflinePlayer(uuid);
            if (player == null) {
                return null;
            }
            GameProfile profile = new GameProfile(uuid, player.getName());
            MinecraftServer server = ((CraftServer) Bukkit.getServer()).getServer();
            // Create an entity to load the player data
            EntityPlayer entity = new EntityPlayer(server, server.getWorldServer(0), profile, new PlayerInteractManager(server.getWorldServer(0)));

            // Get the bukkit entity
View Full Code Here


      return;

    inLocation = event.getSpawnLocation();
    WorldServer worldServer = ((CraftWorld)inLocation.getWorld()).getHandle();
    UUID uuid = UUID.nameUUIDFromBytes(("NPC:" + this.getID() + this.getName()).getBytes(Charsets.UTF_8));
    GameProfile profile = new GameProfile(uuid.toString().replaceAll("-", ""), this.getName());
    this.m_entity = new RemotePlayerEntity(worldServer.getMinecraftServer(), worldServer, profile, new PlayerInteractManager(worldServer), this);
    worldServer.addEntity(m_entity);
    this.m_entity.world.players.remove(this.m_entity);
    Player player = this.getBukkitEntity();
    if(player != null)
View Full Code Here

      //The right way
      return PlayerUtil.getGameProfile(player);
    }
   
    UUID uuid = UUID.nameUUIDFromBytes(("OfflinePlayer:" + name).getBytes(Charsets.UTF_8));
    return new GameProfile(uuid, name);
  }
View Full Code Here

TOP

Related Classes of net.minecraft.util.com.mojang.authlib.GameProfile

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.