Fix build issues

This commit is contained in:
modmuss50 2017-09-28 22:44:55 +01:00
parent 8bf7bce11c
commit 17b09b882a

View file

@ -1,33 +0,0 @@
package techreborn.utils;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import reborncore.api.ICustomToolHandler;
public class GenericWrenchHelper implements ICustomToolHandler {
ResourceLocation itemLocation;
boolean damage;
public GenericWrenchHelper(ResourceLocation itemLocation, boolean damage) {
this.itemLocation = itemLocation;
this.damage = damage;
}
@Override
public boolean canHandleTool(ItemStack stack) {
return stack.getItem().getRegistryName().equals(itemLocation);
}
@Override
public boolean handleTool(ItemStack stack, BlockPos pos, World world, EntityPlayer player, EnumFacing side, boolean damage) {
if(this.damage && damage){
stack.damageItem(1, player);
}
return true;
}
}