createComponent
Last update: 16.07.2025abstract fun createComponent(serverPath: String, name: String, parentName: String)
Instantiates a new component into the Model
Parameters
| serverPath | the location of the Component to instantiate, e.g. mcre://localhost/Block |
| name | the name for the instantiated Component |
| parentName | the name of the parent Component to instantiate the new Component into. To instantiate the Component into the top level, the parent name is usually "Model" |
Throws
| ModelCenterException |
abstract fun createComponent(serverPath: String, name: String, parentName: String, xPos: Long, yPos: Long)
Instantiates a new component into the Model
Parameters
| serverPath | the location of the Component to instantiate, e.g. mcre://localhost/Block |
| name | the name for the instantiated Component |
| parentName | the name of the parent Component to instantiate the new Component into. To instantiate the Component into the top level, the parent name is usually "Model" |
| xPos | the x position for the new component in the Analysis View |
| yPos | the y position for the new component in the Analysis View |
Throws
| ModelCenterException |