Skip to main content

Module devices

Module devices 

Source
Expand description

Base HLAPI device wrappers

Note about time handling:

Several device wrappers return elapsed/remaining time values for various actions. This is returned as a Duration, but is encoded on the wire as raw game ticks, so every tick is assumed to take the standard time of 50ms, or in other words, the server is assumed not to lag. Base OC2 makes this assumption already in a few places, mainly the special RTC that reports the time passed in game since the world started, so we make it as well.

Re-exports§

pub use note_block::NoteBlock;

Modules§

block_operations
The block operations module’s device and its associated types
comparator
The comparator device and its associated types
crafter
The crafter device and its associated types
crafting
The crafting module’s device and its associated types
file_import_export
The file import export card’s device and its associated types
fluid_handler
The fluid handler device and its associated types
item_handler
The item handler device and its associated types
note_block
The note block device and its associated types
redstone
The redstone device and its associated types
robot
The robot’s device and its associated types
scanner
The scaner module’s device and its associated types
sign
The sign device and its associated types

Structs§

Beacon
A beacon device
Beehive
A beehive device
BrewingStand
A brewing stand device
Charger
A charger device
Composter
A composter device
EnergyStorage
An energy storage device
Furnace
A furnace device
GenericDevice
A generic HLAPI device
InventoryOperations
The device for the inventory operations module
ItemStack
An item stack
Jukebox
A jukebox device
Lectern
A lectern device
Serial
A serial device
Spawner
A spawner device
TankContentInfo
Information about the contents of a fluid tank
TankOperations
The device for the tank operations module
Transposer
A transposer device

Enums§

Color
A Minecraft color
Side
A side of a Minecraft block