boolean isPlayer()
This method is provided as a convenience method, and is functionally equivalent to (entity instanceof Player).
boolean isNpc()
This method is provided as a convenience method, and is functionally equivalent to (entity instanceof Npc).