Question

Discussion in 'Plugin Development' started by iWareWolf, Jun 22, 2014.

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

    iWareWolf

    Will this return true if I check if a Sheep is instance of a LivingEntity? Like:

    if(event.getEntity() instanceof LivingEntity)
     
  2. Offline

    Bavestry

    iWareWolf Why wouldn't you just check if it was an instance of a sheep?
     
  3. Offline

    iWareWolf

    Bavestry
    Because it is not always a sheep.
     
  4. Offline

    Bavestry

    iWareWolf Oh, well it will return true. Just as a sheep is considered an Entity, since it's alive, it will be considered a LivingEntity.
     
Thread Status:
Not open for further replies.

Share This Page