public new BarrelRecipeIngredient Clone() { BarrelRecipeIngredient stack = new BarrelRecipeIngredient() { Code = Code.Clone(), Type = Type, Name = Name, Quantity = Quantity, ConsumeQuantity = ConsumeQuantity, ConsumeLitres = ConsumeLitres, IsWildCard = IsWildCard, IsTool = IsTool, Litres = Litres, AllowedVariants = AllowedVariants == null ? null : (string[])AllowedVariants.Clone(), ResolvedItemstack = ResolvedItemstack?.Clone(), ReturnedStack = ReturnedStack?.Clone() }; if (Attributes != null) { stack.Attributes = Attributes.Clone(); } return(stack); }
public new BarrelOutputStack Clone() { BarrelOutputStack stack = new BarrelOutputStack() { Code = Code.Clone(), ResolvedItemstack = ResolvedItemstack?.Clone(), StackSize = StackSize, Type = Type, Litres = Litres }; if (Attributes != null) { stack.Attributes = Attributes.Clone(); } return(stack); }
public new CookingRecipeStack Clone() { CookingRecipeStack stack = new CookingRecipeStack() { Code = Code.Clone(), ResolvedItemstack = ResolvedItemstack?.Clone(), StackSize = StackSize, Type = Type, TextureMapping = (string[])TextureMapping?.Clone(), CookedStack = CookedStack?.Clone() }; if (Attributes != null) { stack.Attributes = Attributes.Clone(); } stack.ShapeElement = ShapeElement; return(stack); }