-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathIAppleCoreMutator.java
More file actions
37 lines (31 loc) · 1.09 KB
/
IAppleCoreMutator.java
File metadata and controls
37 lines (31 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package squeek.applecore.api;
import net.minecraft.entity.player.EntityPlayer;
public interface IAppleCoreMutator
{
/**
* Sets the exhaustion level of the {@code player}.
*/
void setExhaustion(EntityPlayer player, float exhaustion);
/**
* Sets the hunger of the {@code player} in hunger units (1 hunger unit = 1/2 hunger bar).
*/
void setHunger(EntityPlayer player, int hunger);
/**
* Sets the saturation level of the {@code player}.
*/
void setSaturation(EntityPlayer player, float saturation);
/**
* Sets the health regen tick counter of the {@code player}.
*
* See {@link squeek.applecore.api.hunger.HealthRegenEvent.GetRegenTickPeriod}
* and {@link squeek.applecore.api.hunger.HealthRegenEvent.Regen}
*/
void setHealthRegenTickCounter(EntityPlayer player, int tickCounter);
/**
* Sets the starvation tick counter of the {@code player}.
*
* See {@link squeek.applecore.api.hunger.StarvationEvent.GetStarveTickPeriod}
* and {@link squeek.applecore.api.hunger.StarvationEvent.Starve}
*/
void setStarveDamageTickCounter(EntityPlayer player, int tickCounter);
}