from
context(tileEntity: TileEntity)
fun from(bounds: AABBdc = tileEntity.block.toAABBd(), getWindow: (Player) -> Window): TileEntityMenu
fun from(bounds: AABBdc = tileEntity.block.toAABBd(), getWindow: (Player) -> Window): TileEntityMenu
Create a new TileEntityMenu that uses getWindow to get the main window for the given Player. getWindow may create a new window each time or re-use existing windows. Any window opened under the menu will be automatically closed once the viewer is out of the interaction range with bounds.