How would I get the amount of ticks passed between two triggers? (e.g. a onItemRightClick trigger)
Example:
@Override
public ActionResult<ItemStack> onItemRightClick(ItemStack stack, World worldIn, EntityPlayer playerIn, EnumHand hand) {
int ticks = getTicks(); // gets ticks since the last time getTicks() was called
System.out.println(ticks);
return new ActionResult(EnumActionResult.PASS, stack);
}
How would I make the getTicks() method?