public interface Keyboard extends Environment, Persistable
final ItemStack stack = li.cil.oc.api.Items.get("keyboard").createItemStack(1); final Keyboard keyboard = (Keyboard) li.cil.oc.api.Driver.driverFor(stack).createEnvironment(stack, this);
Modifier and Type | Interface and Description |
---|---|
static interface |
Keyboard.UsabilityChecker
Contract interface that has to implemented for usability check overrides.
|
Modifier and Type | Method and Description |
---|---|
void |
setUsableOverride(Keyboard.UsabilityChecker callback)
Sets a custom usability override.
|
node, onConnect, onDisconnect, onMessage
load, save
void setUsableOverride(Keyboard.UsabilityChecker callback)
callback
- the usability checker to use.