[1.14/Fabric] Machine blocks do not implement vanilla InventoryProvider
LemmaEOF opened this issue ยท 1 comments
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);