Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Entity:
- Left Click:
- EntityPlayer.attackTargetWithCurrentItem:
- ItemStack stack = getCurrentEquippedItem();
- if (stack != null && stack.getItem().onLeftClickEntity(stack, this, entity))
- {
- return;
- }
- Right Click:
- Alredy exists
- Blocks:
- Left Click:
- Can Only send 1st and Last click to server...
- Due to how the server calculates the 'clicking' of blocks when mining, we don't get a correct block-hit event.
- So we have the already existing Item.onBlockStartBreak
- Right Click:
- We have onItemUseFirst
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement