Advertisement
Guest User

Untitled

a guest
Mar 16th, 2016
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. Here is the recipe i have for my apple juice.
  2.  
  3. GameRegistry.addShapelessRecipe(new ItemStack(PreInit.apple_juice, 1), new Object[]{PreInit.blender, Items.apple});
  4.  
  5. Down below is my ITemBlender, I think it's not working because it's not knowing what "Stack" is, so it's returning nothing, I need to figure out how to set "Stack" to my PreInit.Blender
  6.  
  7. package com.rbs.slurpiesdongles.items;
  8.  
  9. import com.rbs.slurpiesdongles.lib.PreInit;
  10. import net.minecraft.entity.player.EntityPlayer;
  11. import net.minecraft.item.Item;
  12. import net.minecraft.item.ItemStack;
  13. import net.minecraft.world.World;
  14.  
  15. /**
  16. * Created by RedBu on 3/16/2016.
  17. */
  18. public class ItemBlender extends Item {
  19.  
  20. public boolean hasContainerItem(ItemStack Stack){
  21.  
  22. return true;
  23. }
  24.  
  25. public ItemStack getContainerItem(ItemStack Stack){
  26.  
  27. return Stack;
  28. }
  29.  
  30.  
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement