Skip to content

Commit a3fc353

Browse files
committed
Add Smelting recipe
1 parent 1a8f652 commit a3fc353

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

JsonShapes/Recipes/Smelting.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using System.Text.Json.Serialization;
2+
3+
namespace SteveSharp.JsonShapes.Recipes;
4+
5+
public class Smelting : Recipe {
6+
[JsonPropertyName("type")]
7+
new public string Type { get; set; } = "minecraft:smelting";
8+
9+
[JsonPropertyName("experience")]
10+
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
11+
public double Experience { get; set; }
12+
13+
[JsonPropertyName("cookingtime")]
14+
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
15+
public int CookingTime { get; set; }
16+
}

0 commit comments

Comments
 (0)