Table of Contents

Class BlockEntityBehaviorType

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll

Allows adding behaviors for block entities. Remember, block entities are specific instances of blocks placed within the world. See BlockEntityBehavior and its derived types for all block entities. Open in GitHub

[DocumentAsJson]
public class BlockEntityBehaviorType
Inheritance
BlockEntityBehaviorType
Inherited Members
Extension Methods

Examples

"entityClass": "Brake",
"entityBehaviors": [
	{ "name": "MPBrake" },
	{ "name": "Animatable" }
],

Fields

Name

The ID for this block entity behavior.

[JsonProperty]
[DocumentAsJson("Required", "", false)]
public string Name

Field Value

string

properties

A set of properties specific to the block entity behavior class.

[JsonProperty]
[JsonConverter(typeof(JsonAttributesConverter))]
[DocumentAsJson("Optional", "None", false)]
public JsonObject? properties

Field Value

JsonObject