public final class ModuleAudio extends AbstractModule
| Constructor and Description |
|---|
ModuleAudio(Casing casing,
Face face) |
| Modifier and Type | Method and Description |
|---|---|
void |
render(boolean enabled,
float partialTicks)
Called to allow the module to render dynamic content on the casing it
is installed in.
|
void |
step()
Advance the state of the module.
|
cancelRead, cancelWrite, getCasing, getFace, getPlayerLookAt, hitToUV, isPlayerLookingAt, isVisible, onActivate, onBeforeWriteComplete, onData, onData, onDisabled, onDisposed, onEnabled, onInstalled, onUninstalled, onWriteComplete, readFromNBT, writeToNBTpublic void step()
ModuleThis is called by the controller of the system the module is part of each tick the system is running.
step in interface Modulestep in class AbstractModulepublic void render(boolean enabled,
float partialTicks)
ModuleThe render state will be adjusted to take into account the face the module is installed in, i.e. rendering from (0, 0, 0) to (1, 1, 0) will render the full quad of face of the casing the module is installed in.
Note that the enabled is the same as Casing.isEnabled(),
it is merely passed along for backwards compatibility from before the
time that getter existed.
render in interface Modulerender in class AbstractModuleenabled - whether the module is currently enabled.partialTicks - the partial time elapsed in this tick.