Skip to main content

PrimitiveObjectServer

class ThaumielMapEditor.API.Blocks.ServerObjects

Overview​

Properties​

NameTypeAccessDescription
BasePrimitiveObjectToygetNo description
ColorColorget setNo description
ObjectTypeObjectTypeget setGets or sets the type of the object represented by this instance.
PrimitiveFlagsPrimitiveFlagsget setNo description
PrimitiveTypePrimitiveTypeget setNo description

Methods​

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

Properties​

Base​

Type: PrimitiveObjectToy Access: get


Color​

Type: Color Access: get set


ObjectType​

Type: ObjectType Access: get set

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


PrimitiveFlags​

Type: PrimitiveFlags Access: get set


PrimitiveType​

Type: PrimitiveType Access: get set


Methods​

ParseValues​

ParseValues
public void ParseValues(SerializableObject serializable)

Parameters​

NameTypeDescription
serializableSerializableObject

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

SpawnObject​

SpawnObject
public void SpawnObject(SchematicData schematic)

Parameters​

NameTypeDescription
schematicSchematicData