Class ClientEntityConfig
- Namespace
- Vintagestory.ServerMods.NoObf
- Assembly
- VSEssentials.dll
Specific configuration settings for entities on the client-side.
public class ClientEntityConfig
- Inheritance
-
ClientEntityConfig
Examples
"client": {
"renderer": "Shape",
"textures": {
"material": { "base": "block/stone/rock/{rock}1" }
},
"shape": { "base": "item/stone" },
"size": 1,
"behaviors": [
{ "code": "passivephysics" },
{ "code": "interpolateposition" }
]
},
Fields
Renderer (Required)
Name of the renderer system that draws this entity.
Vanilla Entity Renderer Systems are:
- Item
- Dummy
- BlockFalling
- Shape
- PlayerShape
- EchoChamber
You will likely want to use Shape.
[JsonProperty]
public string Renderer
Field Value
Shape (Required)
The shape of the entity. Must be set unless Renderer is not set to "Shape".
[JsonProperty]
public CompositeShape Shape
Field Value
Animations (Optional) (Default: None)
The animation data for the entity.
[JsonProperty]
public AnimationMetaData[] Animations
Field Value
Behaviors (Optional) (Default: None)
A list of all client-side behaviors for the entity.
[JsonProperty(ItemConverterType = typeof(JsonAttributesConverter))]
public JsonObject[] Behaviors
Field Value
GlowLevel (Optional) (Default: 0)
The glow level for the entity.
[JsonProperty]
public int GlowLevel
Field Value
PitchStep (Optional) (Default: true)
Makes entities pitch forward and backwards when stepping.
[JsonProperty]
public bool PitchStep
Field Value
Size (Optional) (Default: 1)
The size of the entity.
[JsonProperty]
public float Size
Field Value
SizeGrowthFactor (Optional) (Default: 0)
The rate at which the entity's size grows with age - used for chicks and other small baby animals.
[JsonProperty]
public float SizeGrowthFactor
Field Value
Texture (Optional) (Default: None)
Sets a single texture. It is recommended to specify texture keys by using Textures instead of this.
[JsonProperty]
protected CompositeTexture Texture
Field Value
Properties
Textures (Recommended) (Default: None)
A list of all available textures for the entity. First texture in the list will be the default.
[JsonProperty]
public Dictionary<string, CompositeTexture> Textures { get; set; }