Skip to content

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/java/block-entity.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export interface BlastFurnaceRecipesUsed {
6060
export interface BrewingStand extends BlockEntityLike<BlockEntityResource.brewing_stand>, CustomNameableLike {
6161
BrewTime: ShortTag;
6262
Fuel: ByteTag<BrewingStandFuelLevel>;
63-
Items: Item[]; // 0-4, with slot tag
63+
Items: [Item?, Item?, Item?, Item?, Item?]; // 0-4, with slot tag
6464
Lock?: StringTag;
6565
}
6666

@@ -79,7 +79,7 @@ export interface Campfire extends BlockEntityLike<BlockEntityResource.campfire>,
7979
export interface Chest extends BlockEntityLike<BlockEntityResource.chest>, CustomNameableLike, LootTableLike, ChestLike {}
8080

8181
export interface ChiseledBookshelf extends BlockEntityLike<BlockEntityResource.chiseled_bookshelf> {
82-
Items: Item[]; // 0-5, with slot tag
82+
Items: [Item?, Item?, Item?, Item?, Item?, Item?]; // 0-5, with slot tag
8383
last_interacted_slot: IntTag<ChiseledBookshelfLastInteractedSlot>;
8484
}
8585

@@ -130,7 +130,7 @@ export interface FurnaceRecipesUsed {
130130
export interface HangingSign extends BlockEntityLike<BlockEntityResource.hanging_sign>, SignLike {}
131131

132132
export interface Hopper extends BlockEntityLike<BlockEntityResource.hopper>, CustomNameableLike, LootTableLike {
133-
Items: Item[]; // 0-4, with slot tag
133+
Items: [Item?, Item?, Item?, Item?, Item?]; // 0-4, with slot tag
134134
Lock?: StringTag;
135135
TransferCooldown: IntTag<HopperTransferCooldown>;
136136
}
@@ -323,8 +323,7 @@ export interface CampfireLike {
323323
// `IntArrayTag<[number, number, number, number]>`
324324
CookingTimes: IntArrayTag;
325325
CookingTotalTimes: IntArrayTag;
326-
// Should be `[Item,Item,Item,Item]`, but I want the values to be optional. They're not always present there!
327-
Items: Item[]; // 0-3, with slot tag
326+
Items: [Item?, Item?, Item?, Item?]; // 0-3, with slot tag
328327
}
329328

330329
export interface ChestLike {
@@ -345,8 +344,7 @@ export interface FurnaceLike {
345344
BurnTime: ShortTag;
346345
CookTime: ShortTag;
347346
CookTimeTotal: ShortTag;
348-
// `[Item,Item,Item]`
349-
Items: Item[]; // 0-2, with slot tag
347+
Items: [Item?, Item?, Item?]; // 0-2, with slot tag
350348
Lock?: StringTag;
351349
}
352350

0 commit comments

Comments
 (0)