Create an instance of a BaseLevelCommandInterpreter for a BaseLevel.
StaticdefaultStaticparsingExecutes the currentCommand with currentCommandActionBytes to my level.
Perform cleanup by removing all listeners that I created.
OptionalprovidedData: { block: number; position: Vector3 } = nullInterprets the given command as a string. My level will be used to get the names of available commands. I will attempt to fill out required data, but if I am missing data, I will start interactive questions for the missing bytes. When this happens, my level will be set as blocking, and block placements will be used for answering the questions.
OptionalactionBytes: number[] = []Default is []
Optionalevent: "parsingError" | "typeQuestion" | "commandExecuted"StaticvalidateChecks if the given number is a byte. Returns false if it isn't. Otherwise true.
As an instance, I am initialized with a BaseLevel. I act on the level via commands provided by the BasePlayer or by other sources, such as ChangeRecord loading. I may be used interactively by a player. This causes the level to block writes to avoid potential conflict with input intended as responses to my interactive questions.