Class PModule
- Namespace
- Vintagestory.API.Common.Entities
- Assembly
- VintagestoryAPI.dll
public abstract class PModule
- Inheritance
-
PModule
- Derived
- Inherited Members
- Extension Methods
Methods
Applicable(Entity, EntityPos, EntityControls)
Can this be applied this tick?
public abstract bool Applicable(Entity entity, EntityPos pos, EntityControls controls)
Parameters
entity
Entitypos
EntityPoscontrols
EntityControls
Returns
DoApply(float, Entity, EntityPos, EntityControls)
Apply a modifier to this entity.
public abstract void DoApply(float dt, Entity entity, EntityPos pos, EntityControls controls)
Parameters
dt
floatentity
Entitypos
EntityPoscontrols
EntityControls
Initialize(JsonObject, Entity)
Config passed in from the behavior in the entity class.
public abstract void Initialize(JsonObject config, Entity entity)
Parameters
config
JsonObjectentity
Entity