@Override public boolean isValidTarget(ItemStack target) { if (target == null) { return false; } Block blk = Util.getBlockFromItemId(target.itemID); return blk instanceof BlockHalfSlab; }