Reborn Core

Reborn Core

91M Downloads

[1.14/Fabric] Machine blocks do not implement vanilla InventoryProvider

LemmaEOF opened this issue ยท 1 comments

commented

in 1.14.4, there is a new InventoryProvider interface in Vanilla for blocks that contain an inventory. On a block that has a SidedInventory BE, it should be implemented as such:

public SidedInventory getInventory(World world, BlockPos pos, BlockState state) {
    return (SidedInventory)world.getBlockEntity(pos);
commented

Seems easy to do, we should also use this for the item IO