Skip to main content

CapybaraObjectServer

class ThaumielMapEditor.API.Blocks.ServerObjects

Overview​

Properties​

NameTypeAccessDescription
BaseCapybaraToygetNo description
CollisionsEnabledboolget setNo description
ObjectTypeObjectTypeget setGets or sets the type of the object represented by this instance.

Methods​

SignatureReturnsDescription
SpawnObject(SchematicData, SerializableObject)voidSpawns the specified ThaumielMapEditor.API.Blocks.ServerObject into the server…

Properties​

Base​

Type: CapybaraToy Access: get


CollisionsEnabled​

Type: bool Access: get set


ObjectType​

Type: ObjectType Access: get set

Gets or sets the type of the object represented by this instance.


Methods​

SpawnObject​

SpawnObject
public void SpawnObject(
SchematicData schematic,
SerializableObject serializable
)

Spawns the specified ThaumielMapEditor.API.Blocks.ServerObject into the server and adds it to the provided ThaumielMapEditor.API.Data.SchematicData's ThaumielMapEditor.API.Data.SchematicData.SpawnedServerObjects list.

Parameters​

NameTypeDescription
schematicSchematicData
serializableSerializableObject