Additional properties
Creates a new codec
Codec ID
Optionaldata: CodecOptionsCodec options
Compiles the file content
Optionaloptions: { [key: string]: any }Opens the file browser to export a file of this type
Optionaloptions: Record<string, any>Generate a file name to suggest when exporting
Return the stored export option values of the current project
Load a file into the program
Optionalfile: FileResultOptionalargs: LoadOptionsLoad options
OptionaloverwriteOptionalparseTakes the content of a file, and loads the model into the current Blockbench project
File content
File path
Optionalargs: LoadOptionsPrompt the user to enter their preferred export settings into the dialog
Generates the suggested file path. This is the path that the explorer opens in when exporting this type
Write the content of this file to the selected location. The default method can be overwritten to achieve custom behavior
File content, as generated by compile()
The file export path
StaticgetGet a list of all possible extensions of all codecs
Optionalexport_If available, the action that is used to export files using this codec
List of export option inputs
The default file extension that the codec uses
OptionalformatDefault/main format of this codec
The display name of the codec
OptionalpluginWhether to remember files that use this codec in the recent models list
Whether the codec can be used to export a part of the model via a collection
A codec represents a specific file format that can be imported into and exported from Blockbench. The codec handles the compilation and parsing, as well as the loading and exporting logic