Class BlocklyPanelRegisterJSObjects

java.lang.Object
net.mcreator.plugin.MCREvent
net.mcreator.plugin.events.ui.BlocklyPanelRegisterJSObjects

public class BlocklyPanelRegisterJSObjects extends MCREvent
Event called when Blockly panel is ready to register JS objects.

Additional objects can be added by calling getDOMWindow() and adding them to the map. MCreator handles threading as objects need to be added on the JavaFX thread, so it is safe to put elements to the DOMWindow from any thread when using this event.

  • Constructor Details

    • BlocklyPanelRegisterJSObjects

      public BlocklyPanelRegisterJSObjects(BlocklyPanel blocklyPanel, Map<String,Object> domWindowMembers)
  • Method Details