Table of Contents

Interface ILiving

Namespace
Obsidian.API
Assembly
Obsidian.API.dll
public interface ILiving : IEntity
Inherited Members

Properties

AbsorbedArrows

int AbsorbedArrows { get; set; }

Property Value

int

AbsorbtionAmount

int AbsorbtionAmount { get; set; }

Property Value

int

ActiveEffectColor

uint ActiveEffectColor { get; }

Property Value

uint

ActivePotionEffects

The dictionary containing all active PotionEffect with their respective PotionEffectData.

IReadOnlyDictionary<int, EffectWithCurrentDuration> ActivePotionEffects { get; }

Property Value

IReadOnlyDictionary<int, EffectWithCurrentDuration>

Alive

bool Alive { get; }

Property Value

bool

AmbientPotionEffect

bool AmbientPotionEffect { get; set; }

Property Value

bool

BedBlockPosition

Vector BedBlockPosition { get; set; }

Property Value

Vector

LivingBitMask

LivingBitMask LivingBitMask { get; set; }

Property Value

LivingBitMask

Methods

AddPotionEffect(int, int, int, EntityEffectFlags)

Adds the given PotionEffect to the entity.

void AddPotionEffect(int effectId, int duration, int amplifier = 0, EntityEffectFlags effectFlags = EntityEffectFlags.None)

Parameters

effectId int

The potion effect to be added.

duration int

The duration of the potion in ticks.

amplifier int

The amplifier of the effect. The given amplifier + 1 will be displayed in the HUD.

effectFlags EntityEffectFlags

Modifies how the effect should be displayed.

ClearPotionEffects()

Clears all potion effects of the entity.

void ClearPotionEffects()

HasPotionEffect(int)

Whether the entity has the given PotionEffect or not.

bool HasPotionEffect(int effectId)

Parameters

effectId int

The potion effect to be checked.

Returns

bool

True, if the entity has the potion effect.

RemovePotionEffect(int)

Removes the given PotionEffect from the entity.

void RemovePotionEffect(int effectId)

Parameters

effectId int

The potion effect to be removed.