Gettings mobs name?

Discussion in 'Plugin Development' started by VictoryShot, Apr 18, 2014.

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

    VictoryShot

    How would I make a PlayerInteactEvent to get the mobs name. Ive tried and tried and I just cant please help.
     
  2. Offline

    xXDJONESXx

    myEntity.getType().getName();
     
    TigerHix likes this.
  3. Offline

    TigerHix

    This question is ambiguous. Which mob's name you want to get when event fired? You want to get the mob's display name as shown above their head, or the type of the mob, or the name of the type of the mob?

    And before you said you've tried and tried, why not post your "tried" code here and let us see what's the problem with your code?
     
Thread Status:
Not open for further replies.

Share This Page