public final class AudioModule extends AbstractModule
| Constructor and Description |
|---|
AudioModule(Casing casing,
Face face) |
| Modifier and Type | Method and Description |
|---|---|
void |
render(net.minecraft.client.render.block.entity.BlockEntityRenderDispatcher rendererDispatcher,
float partialTicks,
net.minecraft.client.util.math.MatrixStack matrices,
net.minecraft.client.render.VertexConsumerProvider vcp,
int light,
int overlay)
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, getObserverLookAt, hitToUV, isObserverLookingAt, 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 AbstractModule@Environment(value=CLIENT)
public void render(net.minecraft.client.render.block.entity.BlockEntityRenderDispatcher rendererDispatcher,
float partialTicks,
net.minecraft.client.util.math.MatrixStack matrices,
net.minecraft.client.render.VertexConsumerProvider vcp,
int light,
int overlay)
ModuleThe MatrixStack 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.
The light value is provided but most modules will want to ignore it
and render at max brightness using RenderUtil.maxLight.
render in interface Modulerender in class AbstractModulerendererDispatcher - the render context of the tile entity the module sits in.partialTicks - the partial time elapsed in this tick.matrices - the transformation stackvcp - the VertexConsumerProvider to query buffers fromlight - the block-local light value for rendering; usually ignored in favor of RenderUtil.maxLightoverlay - the overlay parameter for rendering