getNearbyEntities in nms

Discussion in 'Plugin Development' started by goodstuff20, Jul 12, 2015.

Thread Status:
Not open for further replies.
  1. Hi,
    Is there a way to use the org.bukkit getNearbyEntites method in nms? (just taking the nms world and getting all nms entities would take to much performance - i need it limited)
    Would there be a method in for ex blockPosition (getChunkCorrdinates)?

  2. Offline


    So you've written it that way and tried it and shown it causes noticeable lag? How do you think the getNearbyEntities() method works anyway?
  3. Offline


    Look at the class in org.bukkit.entity then in Entity interface
  4. Offline


    TheGamesHawk2001 likes this.
  5. Nevermind the had a method that gets the entities with same axisalignedbb or so & entity as parameters

    How would that help me if I want entities out of the nms class?! ...looking for entities using org.bukkit returns none of I.e. instance of fallingblock -.-

    Hmm yeah I guess your right ... I just thought making my own getNearbyEntity method could be slower than some in craftbukkit (looping it better etc.)
    Thanks though

    EDIT by Timtower: merged posts
    Last edited by a moderator: Jul 12, 2015
  6. Offline


    Sorry Misunderstood what you needed.
  7. Alright haha
Thread Status:
Not open for further replies.

Share This Page