Is the item an item (not null or air) @param is the item @return true if it is
(ItemStack is)
| 38 | * @return true if it is |
| 39 | */ |
| 40 | public static boolean is(ItemStack is) { |
| 41 | return is != null && !is.getType().equals(Material.AIR); |
| 42 | } |
| 43 | |
| 44 | /** |
| 45 | * Is the item a certain material |
no test coverage detected