/** * Builds an Itemstack of this tool with the given materials. * * @param materials Materials to build with. Have to be in the correct order. No nulls! * @return The built item or null if invalid input. */ @Nonnull public ItemStack buildItem(List<Material> materials) { ItemStack tool = new ItemStack(this); tool.setTagCompound(buildItemNBT(materials)); return tool; }