Table of Contents

Class PerceptionEffects

Namespace
Vintagestory.API.Client
Assembly
VintagestoryAPI.dll
public class PerceptionEffects
Inheritance
PerceptionEffects
Inherited Members
Extension Methods

Constructors

PerceptionEffects(ICoreClientAPI)

public PerceptionEffects(ICoreClientAPI capi)

Parameters

capi ICoreClientAPI

Properties

RegisteredEffects

public ICollection<string> RegisteredEffects { get; }

Property Value

ICollection<string>

Methods

ApplyToFpHand(Matrixf)

public void ApplyToFpHand(Matrixf modelMat)

Parameters

modelMat Matrixf

ApplyToTpPlayer(EntityPlayer, float[], float?)

public void ApplyToTpPlayer(EntityPlayer entityPlr, float[] modelMatrix, float? playerIntensity = null)

Parameters

entityPlr EntityPlayer
modelMatrix float[]
playerIntensity float?

OnBeforeGameRender(float)

public void OnBeforeGameRender(float dt)

Parameters

dt float

OnOwnPlayerDataReceived(EntityPlayer)

public void OnOwnPlayerDataReceived(EntityPlayer eplr)

Parameters

eplr EntityPlayer

RegisterPerceptionEffect(PerceptionEffect, string)

public void RegisterPerceptionEffect(PerceptionEffect effect, string code)

Parameters

effect PerceptionEffect
code string

TriggerEffect(string, float, bool?)

public void TriggerEffect(string code, float intensity, bool? on = null)

Parameters

code string
intensity float
on bool?