SHARE
TWEET

ItemZoomer

a guest Dec 4th, 2017 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.altiscube.deadcook.items;
  2.  
  3. import com.altiscube.deadcook.mod.Altiscube;
  4.  
  5. import net.minecraft.entity.player.EntityPlayer;
  6. import net.minecraft.item.Item;
  7. import net.minecraft.item.ItemStack;
  8. import net.minecraft.world.World;
  9.  
  10. public class ItemZoomer extends Item
  11.  
  12. {
  13.  
  14. public ItemZoomer()
  15.  
  16. {
  17.  
  18. super();
  19.  
  20. }
  21.  
  22.  
  23.  
  24.    public ItemStack onItemRightClick(ItemStack itemStackIn, World worldIn, EntityPlayer playerIn)
  25.  
  26.    {
  27.  
  28.     if(worldIn.isRemote)
  29.  
  30.     {
  31.  
  32.     Altiscube.zoom = !Altiscube.zoom;
  33.  
  34.     }
  35.  
  36.        return itemStackIn;
  37.  
  38.    }
  39.  
  40. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top