use of toughasnails.thirst.ThirstHandler in project RandomTweaker by Project-RT.
the class IPlayerExpansionTAN method addExhaustion.
@ZenMethod
public static void addExhaustion(IPlayer player, float exhaustion) {
EntityPlayer mcPlayer = CraftTweakerMC.getPlayer(player);
ThirstHandler thirstHandler = (ThirstHandler) mcPlayer.getCapability(TANCapabilities.THIRST, null);
Objects.requireNonNull(thirstHandler).addExhaustion(exhaustion);
}
Aggregations