Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Deck extends Item
- {
- public Deck(String name)
- {
- this.setRegistryName(name);
- this.setUnlocalizedName(name);
- this.setCreativeTab(YugiohMod.CARDS_TAB);
- }
- @Override
- public ActionResult<ItemStack> onItemRightClick(ItemStack itemStackIn, World worldIn, EntityPlayer playerIn, EnumHand hand)
- {
- FMLNetworkHandler.openGui(playerIn, YugiohMod.instance, GuiHandler.DECK_GUI, worldIn, playerIn.getPosition().getX(), playerIn.getPosition().getY(), playerIn.getPosition().getZ());
- return new ActionResult(EnumActionResult.SUCCESS, itemStackIn);
- }
- @Override
- public int getMaxItemUseDuration(ItemStack stack) {
- return 1;
- }
- }
Add Comment
Please, Sign In to add comment