Package net.mcreator.plugin.events.ui
Class BlocklyPanelRegisterJSObjects
java.lang.Object
net.mcreator.plugin.MCREvent
net.mcreator.plugin.events.ui.BlocklyPanelRegisterJSObjects
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 Summary
ConstructorDescriptionBlocklyPanelRegisterJSObjects
(BlocklyPanel blocklyPanel, Map<String, Object> domWindowMembers) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class net.mcreator.plugin.MCREvent
event, getTimeout, isSynchronous
-
Constructor Details
-
BlocklyPanelRegisterJSObjects
public BlocklyPanelRegisterJSObjects(BlocklyPanel blocklyPanel, Map<String, Object> domWindowMembers)
-
-
Method Details
-
getDOMWindow
-
getBlocklyPanel
-