-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChestItem.cs
More file actions
28 lines (25 loc) · 751 Bytes
/
ChestItem.cs
File metadata and controls
28 lines (25 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
namespace Minecraft_Chest_Generator
{
/// <summary>
/// Contains information for a single chest-slot
/// </summary>
public struct ChestItem
{
/// <summary>
/// The item in the slot
/// </summary>
public string Item;
/// <summary>
/// The number of items in the item stack
/// </summary>
public int Count;
/// <summary>
/// Additional item nbt
/// </summary>
public string NBTTag;
public override string ToString()
{
return Item == "air" ? string.Empty : $"{{ Slot: {{0}}b, id: \"{Item}\", Count: {Count}b{(string.IsNullOrEmpty(NBTTag) ? string.Empty : $", tag:{{ {NBTTag} }}")} }}";
}
}
}