Advertisement
Guest User

ItemZoomer

a guest
Dec 4th, 2017
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement