Spaces:
Sleeping
Sleeping
Upload src/types/item.ts with huggingface_hub
Browse files- src/types/item.ts +19 -0
src/types/item.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export interface ItemStack {
|
| 2 |
+
id: string;
|
| 3 |
+
count: number;
|
| 4 |
+
damage: number;
|
| 5 |
+
enchantments: Enchantment[];
|
| 6 |
+
nbt?: Record<string, any>;
|
| 7 |
+
maxStackSize: number;
|
| 8 |
+
durability?: number;
|
| 9 |
+
repairCost: number;
|
| 10 |
+
}
|
| 11 |
+
|
| 12 |
+
export interface Enchantment {
|
| 13 |
+
id: string;
|
| 14 |
+
level: number;
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
export interface ItemProperties {
|
| 18 |
+
[key: string]: any;
|
| 19 |
+
}
|