Examples of func_150996_a()


Examples of net.minecraft.item.ItemStack.func_150996_a()

    if(!hasWater) {
      if(stack.getItem() == Items.water_bucket && !worldObj.isRemote) {
        hasWater = true;
        worldObj.func_147453_f(xCoord, yCoord, zCoord, worldObj.getBlock(xCoord, yCoord, zCoord));
        stack.func_150996_a(Items.bucket); // Set item
        worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
      } else return false;
    }

    boolean didChange = false;
View Full Code Here

Examples of net.minecraft.item.ItemStack.func_150996_a()

                    if (itemstack.getItem() == Items.written_book && itemstack1.getItem() == Items.writable_book)
                    {
                        itemstack1.setTagInfo("author", new NBTTagString(net.playerEntity.getCommandSenderName()));
                        itemstack1.setTagInfo("title", new NBTTagString(itemstack.getTagCompound().getString("title")));
                        itemstack1.setTagInfo("pages", itemstack.getTagCompound().getTagList("pages", 8));
                        itemstack1.func_150996_a(Items.written_book);
                    }

                    return;
                }
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.