Bedrock Energistics Core
    Preparing search index...

    Interface MachineDefinitionHandlersBeta

    Handler callbacks for a machine.

    Handlers are callbacks that respond to certain Bedrock Energistics Core events. These callbacks return responses that tell Bedrock Energistics Core what to do.

    interface MachineDefinitionHandlers {
        receive?: MachineCallback<
            MachineReceiveHandlerArg,
            MachineReceiveHandlerRes,
        >;
        updateUi?: MachineCallback<
            MachineUpdateUiHandlerArg,
            MachineUpdateUiHandlerRes,
        >;
    }
    Index

    Called before a machine receives a storage type during allocation.

    This is called during allocation and may override the amount that the machine gets allocated. This is not called when setMachineStorage is called. Use MachineDefinitionEvents.onStorageSet for that event.

    Called during machine UI updates.

    This handler may be used to set any dynamic options for a machine UI.