Commit Graph

7 Commits

Author SHA1 Message Date
Dylan K. Taylor
ef3d16597a Revert "Chest block now has responsibility for configuring double chest inventories"
This reverts commit 1d2b52732e.

I hadn't considered that the likes of plugins and hoppers need to be
able to interact with double chest inventories as well as players.

If we were to move this logic to the Block side, we'd have to expose
APIs on the Chest block to get the correct inventory lazily. I'm not
sure I want to commit to having getInventory() on the block right now,
as we can't guarantee it's available (see problems around Campfire
inventory on the block).

Short term, it'll probably be better to just expose the logic in
block\Chest for deciding which side the inventories should be on.
2024-12-07 16:04:50 +00:00
Dylan K. Taylor
ce4d3aef9e Rename Container(Trait) -> ContainerTile(Trait)
this allows introducing block variations of these without name conflicts
2024-12-06 15:34:32 +00:00
Dylan K. Taylor
1d2b52732e Chest block now has responsibility for configuring double chest inventories
it already needs to locate the correct pair anyway to know the left/right for DoubleChestInventoryWindow, so we might as well use this logic for initializing the DoubleChestInventory itself too. The old logic in tile/Chest didn't work correctly.
2024-11-24 22:47:35 +00:00
ipad54
8cb2e577a1 Implement missing last interacted slot property in chiseled bookshelf (#6440) 2024-09-02 18:02:06 -05:00
ipad54
13f5cc9f87 ChiseledBookshelf: fixed function visibility (#6421) 2024-08-13 16:11:22 +01:00
ace
82d6fc3890 Fix loading of Chiseled Bookshelf tile from vanilla world (#6084)
Co-authored-by: Dylan T <dktapps@pmmp.io>
2023-10-17 11:10:36 +01:00
HimmelKreis4865
d94391af57 Implement Chiseled Bookshelf (#5827) 2023-09-28 15:56:46 +01:00