Advertisement
Guest User

Tuto Item

a guest
Oct 23rd, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. @Override
  2. public ActionResult<ItemStack> onItemRightClick(World worldIn, EntityPlayer playerIn, EnumHand handIn)
  3. {
  4. if(playerIn.onSneak)
  5. {
  6. playerIn.addChatMessage("bonjour " + playerIn.getName());
  7. }
  8. return new ActionResult(EnumActionResult.PASS, playerIn.getHeldItem(handIn));
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement