<commit_before>package xjon.jum.items;

import java.util.List;
import java.util.Set;

import xjon.jum.init.UselessItems;
import xjon.jum.util.UselessConfiguration;
import net.minecraft.block.Block;
import net.minecraft.block.BlockDirt;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item.ToolMaterial;
import net.minecraft.item.Item;
import net.minecraft.item.ItemHoe;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemTool;
import net.minecraft.potion.Potion;
import net.minecraft.potion.PotionEffect;
import net.minecraft.util.BlockPos;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.EnumFacing;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

import com.google.common.collect.Sets;


public class ItemUselessMultitool extends ItemTool{
 	
	private static final Set<Block> blocksEffectiveAgainst = Sets.newHashSet(Block.blockRegistry);
	protected Item.ToolMaterial theToolMaterial;
	
	
	public ItemUselessMultitool(ToolMaterial material) 
	{
		super(5, material, blocksEffectiveAgainst);
		this.setMaxDamage(3141);
	}
	
	@Override
	public boolean canHarvestBlock(Block block, ItemStack stack)
	{
		if(!UselessConfiguration.isUseless)
		{
			if (block == Blocks.bedrock)
			{
				return false;
			}
			return true;
		}
		else
		{
			return false;
		}
	}
	
	@Override
	public void onUpdate(ItemStack stack, World worldIn, Entity entityIn, int itemSlot, boolean isSelected)
	{
		EntityPlayer player = (EntityPlayer) entityIn;
		ItemStack equipped = player.getCurrentEquippedItem();
		if (equipped == stack)<commit_msg>Make multi-tool work with other mods<commit_after>package xjon.jum.items;

import java.util.List;
import java.util.Set;

import xjon.jum.init.UselessItems;
import xjon.jum.util.UselessConfiguration;
import net.minecraft.block.Block;
import net.minecraft.block.BlockDirt;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item.ToolMaterial;
import net.minecraft.item.Item;
import net.minecraft.item.ItemHoe;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemTool;
import net.minecraft.potion.Potion;
import net.minecraft.potion.PotionEffect;
import net.minecraft.util.BlockPos;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.EnumFacing;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

import com.google.common.collect.Sets;


public class ItemUselessMultitool extends ItemTool {
 	
	private static final Set<Block> blocksEffectiveAgainst = Sets.newHashSet();
	protected Item.ToolMaterial theToolMaterial;
	
	
	public ItemUselessMultitool(ToolMaterial material) 
	{
		super(5, material, blocksEffectiveAgainst);
		this.setMaxDamage(3141);
	}
	
	@Override
	public boolean canHarvestBlock(Block block, ItemStack stack)
	{
		if(!UselessConfiguration.isUseless)
		{
			if (block == Blocks.bedrock)
			{
				return false;
			}
			return true;
		}
		else
		{
			return false;
		}
	}
	
	@Override
	public float getStrVsBlock(ItemStack stack, Block block)
    {
        return 10.0F;
    }
	
	@Override
	public void onUpdate(ItemStack stack, World worldIn, Entity entityIn, int itemSlot, boolean isSelected)
	{
		EntityPlayer player = (EntityPlayer) entityIn;
		ItemStack equipped = player.getCurrentEquippedItem();
		if (equipped == stack)
{'fraction_non_alphanumeric': 0.09712425393380358, 'fraction_numerical': 0.00352685838307108, 'mean_word_length': 5.114427860696518, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3223044', 'n_tokens_mistral': 1261, 'n_tokens_neox': 1210, 'n_words': 237}