Help : Interact new EntityPlayer

Discussion in 'Plugin Development' started by Evyatar12, Jun 15, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Evyatar12

    OK, I created a new EntityPlayer by this constructor :

    Code:java
    1. CraftServer server = (CraftServer) getServer();
    2.  
    3. EntityPlayer ep = new EntityPlayer(server.getServer(), server.getServer().getWorldServer(0), new GameProfile(
    4. UUID.fromString("a5f33fc2-6456-444a-84c6-66e315dce2b1"), "Evyatar12"), new PlayerInteractManager(server.getServer().getWorld()));



    Now I got a problem, I want to make the npc to be available for interact and I don't know how to attach this npc to the server

    (Yea, I know how to send packets I just didn't write it...)
     
  2. Offline

    xepisolonxx

  3. Offline

    Evyatar12

    xepisolonxx
    I want to make this code by myslef, not using API ...
     
  4. Offline

    Gater12

    Evyatar12
    Go snag yourself the class(es) to make NPCs in the Resource subsection. Like NPCFactory.
     
    Konkz likes this.
Thread Status:
Not open for further replies.

Share This Page