Table of Contents

Class PModuleInLiquid

Namespace
Vintagestory.API.Common.Entities
Assembly
VintagestoryAPI.dll
public class PModuleInLiquid : PModule
Inheritance
PModuleInLiquid
Derived
Inherited Members
Extension Methods

Fields

Push

public float Push

Field Value

float

Swimspeed

public float Swimspeed

Field Value

float

Methods

Applicable(Entity, EntityPos, EntityControls)

Can this be applied this tick?

public override bool Applicable(Entity entity, EntityPos pos, EntityControls controls)

Parameters

entity Entity
pos EntityPos
controls EntityControls

Returns

bool

DoApply(float, Entity, EntityPos, EntityControls)

Apply a modifier to this entity.

public override void DoApply(float dt, Entity entity, EntityPos pos, EntityControls controls)

Parameters

dt float
entity Entity
pos EntityPos
controls EntityControls

HandleSwimming(float, Entity, EntityPos, EntityControls)

public virtual void HandleSwimming(float dt, Entity entity, EntityPos pos, EntityControls controls)

Parameters

dt float
entity Entity
pos EntityPos
controls EntityControls

Initialize(JsonObject, Entity)

Config passed in from the behavior in the entity class.

public override void Initialize(JsonObject config, Entity entity)

Parameters

config JsonObject
entity Entity