Class BedrockEventSubscriptionCache
Hierarchy
BedrockEventSubscriptionCache
Defined in index.d.ts:519
Methods
subscribe To Bedrock Event
subscribe To Bedrock Event < T > ( event , ... params ) : ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void )
Type Parameters
T extends keyof WorldAfterEvents
Parameters
event : T
Rest
... params : Parameters < WorldAfterEvents [ T ] [ "subscribe" ] >
Returns ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void ) | ( ( arg ) => void )
Defined in index.d.ts:542
teardown
teardown ( ) : void
Returns void
Defined in index.d.ts:572
A cache for bedrock event subscriptions. Stores off a subscription by event key, and upon teardown unregisters all subscriptions.