Interface ILiving
public interface ILiving : IEntity
- Inherited Members
Properties
AbsorbedArrows
int AbsorbedArrows { get; set; }
Property Value
AbsorbtionAmount
int AbsorbtionAmount { get; set; }
Property Value
ActiveEffectColor
uint ActiveEffectColor { get; }
Property Value
ActivePotionEffects
The dictionary containing all active PotionEffect with their respective PotionEffectData.
IReadOnlyDictionary<int, EffectWithCurrentDuration> ActivePotionEffects { get; }
Property Value
Alive
bool Alive { get; }
Property Value
AmbientPotionEffect
bool AmbientPotionEffect { get; set; }
Property Value
BedBlockPosition
Vector BedBlockPosition { get; set; }
Property Value
LivingBitMask
LivingBitMask LivingBitMask { get; set; }
Property Value
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
intThe potion effect to be added.
duration
intThe duration of the potion in ticks.
amplifier
intThe amplifier of the effect. The given amplifier + 1 will be displayed in the HUD.
effectFlags
EntityEffectFlagsModifies 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
intThe 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
intThe potion effect to be removed.