Guest User

Untitled

a guest
Nov 2nd, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. public class Deck extends Item
  2. {
  3. public Deck(String name)
  4. {
  5. this.setRegistryName(name);
  6. this.setUnlocalizedName(name);
  7. this.setCreativeTab(YugiohMod.CARDS_TAB);
  8. }
  9.  
  10. @Override
  11. public ActionResult<ItemStack> onItemRightClick(ItemStack itemStackIn, World worldIn, EntityPlayer playerIn, EnumHand hand)
  12. {
  13. FMLNetworkHandler.openGui(playerIn, YugiohMod.instance, GuiHandler.DECK_GUI, worldIn, playerIn.getPosition().getX(), playerIn.getPosition().getY(), playerIn.getPosition().getZ());
  14. return new ActionResult(EnumActionResult.SUCCESS, itemStackIn);
  15. }
  16.  
  17. @Override
  18. public int getMaxItemUseDuration(ItemStack stack) {
  19. return 1;
  20. }
  21. }
Add Comment
Please, Sign In to add comment