Additional properties
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
The display name of the codec
OptionalpluginThe ID of the plugin that created the object
Whether 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
Compiles the file content
Optionaloptions: anyOpens the file browser to export a file of this type
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: anyOptionalargs: LoadOptionsAdds an event listener to the codec
The event type to listen for
Adds a single-use event listener to the codec
The event type to listen for
OptionalparseTakes 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
Removes an event listener from the codec
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
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