OpenMod Docs OpenMod Docs
OpenMod Docs OpenMod Docs
OpenMod .NET Plugin Framework.

Interface IHasHunger

Namespace: OpenMod.Extensions.Games.Abstractions.Entities
Assembly: OpenMod.Extensions.Games.Abstractions.dll
Syntax
public interface IHasHunger

Properties

| Improve this Doc View Source

Hunger

Gets the hunger of the entity.

Declaration
double Hunger { get; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

MaxHunger

Gets the max hunger the entity can have.

Declaration
double MaxHunger { get; }
Property Value
Type Description
System.Double

Methods

| Improve this Doc View Source

SetHungerAsync(Double)

Sets the hunger of the entity.

Declaration
Task SetHungerAsync(double hunger)
Parameters
Type Name Description
System.Double hunger

The hunger to set to.

Returns
Type Description
Task

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)