コード例 #1
0
 /// <summary>
 /// Intializes a new <see cref="SmeltRecipe"/>
 /// </summary>
 /// <param name="packNamespace">The namespace the recipe is in</param>
 /// <param name="fileName">The name of the recipe file</param>
 /// <param name="writeSetting">The settings for how to write this file</param>
 /// <param name="group">The name of the recipe group the recipe is in. Leave null for no group.</param>
 /// <param name="recipeType">The type of smelting recipe</param>
 /// <param name="ingredient">The item to smelt</param>
 /// <param name="result">The result from the recipe</param>
 /// <param name="experience">The amount of experience to get for smelting the item</param>
 /// <param name="cookingTime">The amount of time in ticks it takes to cook the item</param>
 public SmeltRecipe(BasePackNamespace packNamespace, string?fileName, SmeltType recipeType, IItemType ingredient, ID.Item result, double experience, NoneNegativeTime <int>?cookingTime = null, string?group = null, WriteSetting writeSetting = WriteSetting.LockedAuto) : this(true, packNamespace, fileName, recipeType, new IItemType[] { ingredient }, result, experience, cookingTime, group, writeSetting)
 {
     FinishedConstructing();
 }
コード例 #2
0
 /// <summary>
 /// Intializes a new <see cref="SmeltRecipe"/>. Inherite from this constructor.
 /// </summary>
 /// <param name="packNamespace">The namespace the recipe is in</param>
 /// <param name="fileName">The name of the recipe file</param>
 /// <param name="writeSetting">The settings for how to write this file</param>
 /// <param name="group">The name of the recipe group the recipe is in. Leave null for no group.</param>
 /// <param name="recipeType">The type of smelting recipe</param>
 /// <param name="ingredients">The different types of items which can be used in the recipe</param>
 /// <param name="result">The result from the recipe</param>
 /// <param name="experience">The amount of experience to get for smelting the item</param>
 /// <param name="cookingTime">The amount of time it takes to cook the item</param>
 /// <param name="_">Unused parameter used for specifing you want to use this constructor</param>
 protected SmeltRecipe(bool _, BasePackNamespace packNamespace, string?fileName, SmeltType recipeType, IItemType[] ingredients, ID.Item result, double experience, NoneNegativeTime <int>?cookingTime = null, string?group = null, WriteSetting writeSetting = WriteSetting.LockedAuto) : base(packNamespace, fileName, group, writeSetting, "minecraft:" + recipeType.ToString())
 {
     Ingredients = ingredients;
     Result      = result;
     Experience  = experience;
     CookingTime = cookingTime;
 }