Guest User

Entity Check (Non living)

a guest
Jun 30th, 2014
12
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (ent == null || ent.getType() == EntityType.PAINTING
  2. || ent.getType() == EntityType.ITEM_FRAME
  3. || ent.getType() == EntityType.DROPPED_ITEM
  4. || ent.getType() == EntityType.COMPLEX_PART
  5. || ent.getType() == EntityType.ENDER_CRYSTAL
  6. || ent.getType() == EntityType.ENDER_PEARL
  7. || ent.getType() == EntityType.FIREBALL
  8. || ent.getType() == EntityType.FIREWORK
  9. || ent.getType() == EntityType.SNOWBALL
  10. || ent.getType() == EntityType.PRIMED_TNT
  11. || ent.getType() == EntityType.FALLING_BLOCK
  12. || ent.getType() == EntityType.EXPERIENCE_ORB
  13. || ent.getType() == EntityType.LIGHTNING
  14. || ent.getType() == EntityType.ENDER_SIGNAL
  15. || ent.getType() == EntityType.FISHING_HOOK
  16. || ent.getType() == EntityType.FISHING_HOOK
  17. || ent.getType() == EntityType.EGG
  18. || ent.getType() == EntityType.LEASH_HITCH
  19. || ent.getType() == EntityType.MINECART
  20. || ent.getType() == EntityType.MINECART_CHEST
  21. || ent.getType() == EntityType.MINECART_COMMAND
  22. || ent.getType() == EntityType.MINECART_FURNACE
  23. || ent.getType() == EntityType.MINECART_HOPPER
  24. || ent.getType() == EntityType.MINECART_MOB_SPAWNER
  25. || ent.getType() == EntityType.MINECART_TNT
  26. || ent.getType() == EntityType.SMALL_FIREBALL
  27. || ent.getType() == EntityType.UNKNOWN
  28. || ent.getType() == EntityType.THROWN_EXP_BOTTLE
  29. || ent.getType() == EntityType.SMALL_FIREBALL
  30. || ent.getType() == EntityType.SPLASH_POTION
  31. || ent.getType() == EntityType.WEATHER
  32. || ent.getType() == EntityType.WITHER_SKULL)
  33. return;
RAW Paste Data