Interface IHasHunger
Namespace: OpenMod.Extensions.Games.Abstractions.Entities
Assembly: OpenMod.Extensions.Games.Abstractions.dll
Syntax
public interface IHasHunger
Properties
| Improve this Doc View SourceHunger
Gets the hunger of the entity.
Declaration
double Hunger { get; }
Property Value
| Type | Description |
|---|---|
| System.Double |
MaxHunger
Gets the max hunger the entity can have.
Declaration
double MaxHunger { get; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Methods
| Improve this Doc View SourceSetHungerAsync(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 |