Class EntityClientProperties
- Namespace
- Vintagestory.API.Common.Entities
- Assembly
- VintagestoryAPI.dll
public class EntityClientProperties : EntitySidedProperties
- Inheritance
-
EntityClientProperties
- Inherited Members
- Extension Methods
Constructors
EntityClientProperties(JsonObject[], Dictionary<string, JsonObject>)
public EntityClientProperties(JsonObject[] behaviors, Dictionary<string, JsonObject> commonConfigs)
Parameters
behaviors
JsonObject[]commonConfigs
Dictionary<string, JsonObject>
Fields
Animations
The animations of the entity.
public AnimationMetaData[] Animations
Field Value
AnimationsByCrc32
public Dictionary<uint, AnimationMetaData> AnimationsByCrc32
Field Value
AnimationsByMetaCode
public Dictionary<string, AnimationMetaData> AnimationsByMetaCode
Field Value
GlowLevel
The glow level for the entity.
public int GlowLevel
Field Value
LoadedAlternateShapes
public Shape[] LoadedAlternateShapes
Field Value
- Shape[]
LoadedShape
Only loaded for World.EntityTypes instances of EntityProperties, because it makes no sense to have 1000 loaded entities needing to load 1000 shapes. During entity load/spawn this value is assigned however On the client it gets set by the EntityTextureAtlasManager On the server by the EntitySimulation system
public Shape LoadedShape
Field Value
LoadedShapeForEntity
The shape for this particular entity who owns this properties object
public Shape LoadedShapeForEntity
Field Value
PitchStep
Makes entities pitch forward and backwards when stepping
public bool PitchStep
Field Value
Renderer
Set by the game client
public EntityRenderer Renderer
Field Value
RendererName
Name of there renderer system that draws this entity
public string RendererName
Field Value
Shape
The shape of the entity
public CompositeShape Shape
Field Value
ShapeForEntity
public CompositeShape ShapeForEntity
Field Value
Size
The size of the entity (default: 1f)
public float Size
Field Value
SizeGrowthFactor
The rate at which the entity's size grows with age - used for chicks and other small baby animals
public float SizeGrowthFactor
Field Value
Textures
Directory of all available textures. First one will be default one
public IDictionary<string, CompositeTexture> Textures
Field Value
Properties
FirstTexture
Returns the first texture in Textures dict
public CompositeTexture FirstTexture { get; }
Property Value
Texture
Used by various renderers to retrieve the entities texture it should be drawn with
public virtual CompositeTexture Texture { get; }
Property Value
Methods
Clone()
Does not clone textures, but does clone shapes
public override EntitySidedProperties Clone()
Returns
DetermineLoadedShape(long)
public void DetermineLoadedShape(long forEntityId)
Parameters
forEntityId
long
Init(AssetLocation, IWorldAccessor)
Initializes the client properties.
public void Init(AssetLocation entityTypeCode, IWorldAccessor world)
Parameters
entityTypeCode
AssetLocationworld
IWorldAccessor