Dispenser.HideAllItems
Skip to content
mnscript
Dispenser.HideAllItems() 

Description ​

Removes all items being displayed from the dispenser screen.

Example ​

msc
using Peripheral;
using Console;
using Application;
using Util;
using Array;

Dispenser dispenser = Peripheral.GetConnectedDispenser();

if(dispenser.IsValid() == false){
    // If the dispenser was not found, quit.
    Application.Exit();
}

// Tells the dispenser to stop displaying all items.
dispenser.HideAllItems();