made peripherals a static class

This commit is contained in:
2023-07-27 20:38:23 +02:00
parent a93ee1cddf
commit 9deea0ee98
14 changed files with 42 additions and 52 deletions

View File

@@ -54,10 +54,10 @@ Also peripherals can be made accessible via the network. More on that later.
## Usage
```haxe
var back = Peripheral.instance.getRedstone("back");
var back = Peripheral.getRedstone("back");
back.setOutput(true);
var drive Peripheral.instance.getDrive("drive_0");
var drive Peripheral.getDrive("drive_0");
drive.eject();
```