public new JsonCraftingIngredient Clone() { JsonCraftingIngredient ingredient = new JsonCraftingIngredient(AllowedVariants, Name, Count); ingredient.Attributes = Attributes?.Token?.HasValues ?? false ? Attributes : null; ingredient.Code = Code; ingredient.Name = Name; ingredient.StackSize = StackSize; ingredient.Type = Type; return(ingredient); }
public InWorldCraftingRecipe(EnumInWorldCraftingMode mode, RegistryObjectVariantGroup[] variantGroups, JsonCraftingIngredient takes, JsonCraftingIngredient tool, JsonCraftingOutput[] returns, JsonCraftingOutput[] makes, AssetLocation craftSound, bool isTool, bool disabled, bool remove, float makeTime) { Mode = mode; Takes = takes; Tool = tool; Returns = returns; Makes = makes; CraftSound = craftSound; IsTool = isTool; Disabled = disabled; Remove = remove; MakeTime = makeTime; VariantGroups = variantGroups; }