It does and it worked
public EnumActionResult onItemUse(EntityPlayer player, World world, BlockPos pos, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ)
{
System.out.println(world.getBlockState(pos).getBlock());
return EnumActionResult.PASS;
}
But just another side question, do you know how to do it with say a dropped item on the ground?
I know the the cords of the block, its just from MC Forge, there use to be some world command that allowed you to grab a block with Coordinates and it 1.11.2 idk what it is/forgot
I understand that its not a Varible, I guess the point of the question is in 1.11.2 How can I specify it to test for a specific entity, Considering I cant you the EntityCow Class
public boolean itemInteractionForEntity(ItemStack stack, EntityPlayer playerIn, EntityLivingBase target, EnumHand hand)
{
if (target.isEntityEqual(EntityCow))
{
System.out.println("This is a cow!!");
}
return false;
}
When i am trying to run this code, EntityCow is erroring saying "EntityCow cant be resolved to a variable"