@SubscribeEvent public void walkingPenalty(LivingUpdateEvent event){
  if (!(event.getEntityLiving() instanceof EntityPlayer))   return;
  EntityPlayer player=(EntityPlayer)event.getEntityLiving();
  if (!EntityPlayerExt.isSurvival(player))   return;
  if (!(player.getFoodStats() instanceof BWMFoodStats))   return;
  final UUID penaltySpeedUUID=UUID.fromString("c5595a67-9410-4fb2-826a-bcaf432c6a6f");
  EntityPlayerExt.changeSpeed(player,penaltySpeedUUID,"Health speed penalty",EntityPlayerExt.getHealthAndExhaustionModifier(player));
}

@ SubscribeEvent public void walkingPenalty ( LivingUpdateEvent event ) { if ( ! ( event . getEntityLiving ( ) instanceof EntityPlayer ) ) return ; EntityPlayer player = ( EntityPlayer ) event . getEntityLiving ( ) ; if ( ! EntityPlayerExt . isSurvival ( player ) ) return ; if ( ! ( player . getFoodStats ( ) instanceof BWMFoodStats ) ) return ; final UUID penaltySpeedUUID = UUID . fromString ( "c5595a67-9410-4fb2-826a-bcaf432c6a6f" ) ; EntityPlayerExt . changeSpeed ( player , penaltySpeedUUID , "Health speed penalty" , EntityPlayerExt . getHealthAndExhaustionModifier ( player ) ) ; }
walking speed changed according to health / exhaustion / fat
