Search in sources :

Example 1 with IThirst

use of toughasnails.api.stat.capability.IThirst in project RandomTweaker by Project-RT.

the class IPlayerExpansionTAN method addStats.

@ZenMethod
public static void addStats(IPlayer player, int thirst, float hydration) {
    IThirst cap = ThirstHelper.getThirstData(CraftTweakerMC.getPlayer(player));
    cap.addStats(thirst, hydration);
}
Also used : IThirst(toughasnails.api.stat.capability.IThirst) ZenMethod(stanhebben.zenscript.annotations.ZenMethod)

Example 2 with IThirst

use of toughasnails.api.stat.capability.IThirst in project RandomTweaker by Project-RT.

the class IPlayerExpansionTAN method setExhaustion.

@ZenMethod
public static void setExhaustion(IPlayer player, float exhaustion) {
    IThirst cap = ThirstHelper.getThirstData(CraftTweakerMC.getPlayer(player));
    cap.setExhaustion(exhaustion);
}
Also used : IThirst(toughasnails.api.stat.capability.IThirst) ZenMethod(stanhebben.zenscript.annotations.ZenMethod)

Example 3 with IThirst

use of toughasnails.api.stat.capability.IThirst in project RandomTweaker by Project-RT.

the class IPlayerExpansionTAN method setHydration.

@ZenMethod
public static void setHydration(IPlayer player, float hydration) {
    IThirst cap = ThirstHelper.getThirstData(CraftTweakerMC.getPlayer(player));
    cap.setHydration(hydration);
}
Also used : IThirst(toughasnails.api.stat.capability.IThirst) ZenMethod(stanhebben.zenscript.annotations.ZenMethod)

Example 4 with IThirst

use of toughasnails.api.stat.capability.IThirst in project RandomTweaker by Project-RT.

the class IPlayerExpansionTAN method setThirst.

@ZenMethod
public static void setThirst(IPlayer player, int thirst) {
    IThirst cap = ThirstHelper.getThirstData(CraftTweakerMC.getPlayer(player));
    cap.setThirst(thirst);
}
Also used : IThirst(toughasnails.api.stat.capability.IThirst) ZenMethod(stanhebben.zenscript.annotations.ZenMethod)

Aggregations

ZenMethod (stanhebben.zenscript.annotations.ZenMethod)4 IThirst (toughasnails.api.stat.capability.IThirst)4