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
- Brewing
Stand - A brewing stand device
- Charger
- A charger device
- Composter
- A composter device
- Energy
Storage - An energy storage device
- Furnace
- A furnace device
- Generic
Device - A generic HLAPI device
- Inventory
Operations - The device for the inventory operations module
- Item
Stack - An item stack
- Jukebox
- A jukebox device
- Lectern
- A lectern device
- Serial
- A serial device
- Spawner
- A spawner device
- Tank
Content Info - Information about the contents of a fluid tank
- Tank
Operations - The device for the tank operations module
- Transposer
- A transposer device